#20124F#20124F

#20124F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.105 H 286.4°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#20124F
RGBrgb(32, 18, 79)
HSLhsl(254, 63%, 19%)
HSVhsv(254, 77%, 31%)
CMYKcmyk(59.5%, 77.2%, 0%, 69%)
CIE-LABlab(11.30, 25.29, -35.02)
CIE-LCHlch(11.30, 43.20, 305.84°)
OKLaboklab(24.64% 0.0297 -0.1007)
OKLCHoklch(24.64% 0.105 286.4)
XYZxyz(2.2228, 1.3041, 7.5302)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20124F #414F12
analogous
#12234F #20124F #3F124F
triadic
#20124F #4F2012 #124F20
tetradic
#20124F #4F1223 #414F12 #124F3F
square
#20124F #4F1223 #414F12 #124F3F
split-complementary
#20124F #4F3F12 #234F12
monochromatic
#0A0619 #0C071D #20124F #341D81 #4829B3

Accessibility & contrast

On white

16.66
#20124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#20124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20124F
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20124F#FFFFFF#000000##FFFFFF
##20124F1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#0C222F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #20124f;
/* rgb */ color: rgb(32, 18, 79);
/* oklch */ color: oklch(24.6% 0.105 286.4);
Tailwind
colors: {
  custom: {
    50: '#625181',
    500: '#20124f',
    950: '#000000',
  },
}
SCSS
$custom: #20124f;
$custom-light: #625181;
$custom-dark: #000000;
JSON
{
  "hex": "#20124f",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 253.77,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24643,
    "c": 0.10496,
    "h": 286.4
  },
  "luminance": 0.01304
}

Semantic roles & 50–950 ramp

primary
#20124F
secondary
#758835
accent
#E642C0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20124F

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

Preview Lab → · Contrast checker → · Palette generator →

#20124F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva