#23124C#23124C

#23124C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.101 H 290.5°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#23124C
RGBrgb(35, 18, 76)
HSLhsl(258, 62%, 18%)
HSVhsv(258, 76%, 30%)
CMYKcmyk(53.9%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.36, 24.87, -32.85)
CIE-LCHlch(11.36, 41.20, 307.13°)
OKLaboklab(24.67% 0.0353 -0.0942)
OKLCHoklch(24.67% 0.101 290.5)
XYZxyz(2.2136, 1.3117, 6.9726)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23124C #3B4C12
analogous
#121E4C #23124C #40124C
triadic
#23124C #4C2312 #124C23
tetradic
#23124C #4C121E #3B4C12 #124C40
square
#23124C #4C121E #3B4C12 #124C40
split-complementary
#23124C #4C4012 #1E4C12
monochromatic
#0B0619 #0C061B #23124C #3A1E7D #5129AF

Accessibility & contrast

On white

16.63
#23124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#23124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23124C
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23124C#FFFFFF#000000##FFFFFF
##23124C1.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#15212D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #23124c;
/* rgb */ color: rgb(35, 18, 76);
/* oklch */ color: oklch(24.7% 0.101 290.5);
Tailwind
colors: {
  custom: {
    50: '#63517f',
    500: '#23124c',
    950: '#000000',
  },
}
SCSS
$custom: #23124c;
$custom-light: #63517f;
$custom-dark: #000000;
JSON
{
  "hex": "#23124c",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 257.586,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24672,
    "c": 0.1006,
    "h": 290.5
  },
  "luminance": 0.01312
}

Semantic roles & 50–950 ramp

primary
#23124C
secondary
#6E8535
accent
#E543B5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #23124C

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

Preview Lab → · Contrast checker → · Palette generator →

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