#23145C#23145C

#23145C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.120 H 284.3°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#23145C
RGBrgb(35, 20, 92)
HSLhsl(253, 64%, 22%)
HSVhsv(253, 78%, 36%)
CMYKcmyk(62%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.41, 29.00, -40.38)
CIE-LCHlch(13.41, 49.71, 305.69°)
OKLaboklab(26.63% 0.0296 -0.1163)
OKLCHoklch(26.63% 0.12 284.3)
XYZxyz(2.8745, 1.6302, 10.2863)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23145C #4D5C14
analogous
#14295C #23145C #47145C
triadic
#23145C #5C2314 #145C23
tetradic
#23145C #5C1429 #4D5C14 #145C47
square
#23145C #5C1429 #4D5C14 #145C47
split-complementary
#23145C #5C4714 #295C14
monochromatic
#0A0519 #10092A #23145C #361F8E #492AC1

Accessibility & contrast

On white

15.84
#23145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#23145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23145C
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23145C#FFFFFF#000000##FFFFFF
##23145C1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#052836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #23145c;
/* rgb */ color: rgb(35, 20, 92);
/* oklch */ color: oklch(26.6% 0.120 284.3);
Tailwind
colors: {
  custom: {
    50: '#66538b',
    500: '#23145c',
    950: '#000000',
  },
}
SCSS
$custom: #23145c;
$custom-light: #66538b;
$custom-dark: #000000;
JSON
{
  "hex": "#23145c",
  "rgb": {
    "r": 35,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 252.5,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26631,
    "c": 0.11999,
    "h": 284.3
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#23145C
secondary
#819438
accent
#E741C5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23145C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#23145C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva