#20124B#20124B

#20124B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.099 H 287.9°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#20124B
RGBrgb(32, 18, 75)
HSLhsl(255, 61%, 18%)
HSVhsv(255, 76%, 29%)
CMYKcmyk(57.3%, 76%, 0%, 70.6%)
CIE-LABlab(10.90, 23.93, -32.91)
CIE-LCHlch(10.90, 40.69, 306.02°)
OKLaboklab(24.23% 0.0305 -0.0945)
OKLCHoklch(24.23% 0.099 287.9)
XYZxyz(2.0816, 1.2476, 6.7864)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20124B #3D4B12
analogous
#12204B #20124B #3C124B
triadic
#20124B #4B2012 #124B20
tetradic
#20124B #4B1220 #3D4B12 #124B3C
square
#20124B #4B1220 #3D4B12 #124B3C
split-complementary
#20124B #4B3C12 #204B12
monochromatic
#0B0619 #0B061A #20124B #351E7C #4A2AAE

Accessibility & contrast

On white

16.81
#20124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#20124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20124B
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20124B#FFFFFF#000000##FFFFFF
##20124B1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#10212C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20124b;
/* rgb */ color: rgb(32, 18, 75);
/* oklch */ color: oklch(24.2% 0.099 287.9);
Tailwind
colors: {
  custom: {
    50: '#61517e',
    500: '#20124b',
    950: '#000000',
  },
}
SCSS
$custom: #20124b;
$custom-light: #61517e;
$custom-dark: #000000;
JSON
{
  "hex": "#20124b",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 254.737,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24234,
    "c": 0.0993,
    "h": 287.9
  },
  "luminance": 0.01248
}

Semantic roles & 50–950 ramp

primary
#20124B
secondary
#718435
accent
#E443BD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20124B

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

Preview Lab → · Contrast checker → · Palette generator →

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