#23124D#23124D

#23124D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.102 H 290.1°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#23124D
RGBrgb(35, 18, 77)
HSLhsl(257, 62%, 19%)
HSVhsv(257, 77%, 30%)
CMYKcmyk(54.5%, 76.6%, 0%, 69.8%)
CIE-LABlab(11.45, 25.20, -33.38)
CIE-LCHlch(11.45, 41.82, 307.05°)
OKLaboklab(24.77% 0.0351 -0.0958)
OKLCHoklch(24.77% 0.102 290.1)
XYZxyz(2.2486, 1.3257, 7.1571)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23124D #3C4D12
analogous
#121E4D #23124D #40124D
triadic
#23124D #4D2312 #124D23
tetradic
#23124D #4D121E #3C4D12 #124D40
square
#23124D #4D121E #3C4D12 #124D40
split-complementary
#23124D #4D4012 #1E4D12
monochromatic
#0B0619 #0C061B #23124D #3A1E7F #5029B0

Accessibility & contrast

On white

16.60
#23124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#23124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23124D
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23124D#FFFFFF#000000##FFFFFF
##23124D1.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#15212E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #23124d;
/* rgb */ color: rgb(35, 18, 77);
/* oklch */ color: oklch(24.8% 0.102 290.1);
Tailwind
colors: {
  custom: {
    50: '#63517f',
    500: '#23124d',
    950: '#000000',
  },
}
SCSS
$custom: #23124d;
$custom-light: #63517f;
$custom-dark: #000000;
JSON
{
  "hex": "#23124d",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 257.288,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24772,
    "c": 0.102,
    "h": 290.1
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#23124D
secondary
#6F8635
accent
#E543B6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #23124D

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

Preview Lab → · Contrast checker → · Palette generator →

#23124D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva