#20126A#20126A

#20126A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.141 H 279.1°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#20126A
RGBrgb(32, 18, 106)
HSLhsl(250, 71%, 24%)
HSVhsv(250, 83%, 42%)
CMYKcmyk(69.8%, 83%, 0%, 58.4%)
CIE-LABlab(14.29, 34.40, -48.23)
CIE-LCHlch(14.29, 59.25, 305.50°)
OKLaboklab(27.64% 0.0222 -0.1393)
OKLCHoklch(27.64% 0.141 279.1)
XYZxyz(3.4127, 1.7800, 13.7966)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20126A #5C6A12
analogous
#12306A #20126A #4C126A
triadic
#20126A #6A2012 #126A20
tetradic
#20126A #6A1230 #5C6A12 #126A4C
square
#20126A #6A1230 #5C6A12 #126A4C
split-complementary
#20126A #6A4C12 #306A12
monochromatic
#08041A #100936 #20126A #301B9E #4024D3

Accessibility & contrast

On white

15.49
#20126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#20126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20126A
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20126A#FFFFFF#000000##FFFFFF
##20126A1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002168
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20126a;
/* rgb */ color: rgb(32, 18, 106);
/* oklch */ color: oklch(27.6% 0.141 279.1);
Tailwind
colors: {
  custom: {
    50: '#685396',
    500: '#20126a',
    950: '#000000',
  },
}
SCSS
$custom: #20126a;
$custom-light: #685396;
$custom-dark: #000000;
JSON
{
  "hex": "#20126a",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 249.545,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27642,
    "c": 0.14105,
    "h": 279.1
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#20126A
secondary
#90A236
accent
#EE3AD1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #20126A

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

Preview Lab → · Contrast checker → · Palette generator →

#20126A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva