#20126D#20126D

#20126D is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.145 H 278.5°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#20126D
RGBrgb(32, 18, 109)
HSLhsl(249, 72%, 25%)
HSVhsv(249, 83%, 43%)
CMYKcmyk(70.6%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.64, 35.39, -49.61)
CIE-LCHlch(14.64, 60.94, 305.50°)
OKLaboklab(27.99% 0.0213 -0.1433)
OKLCHoklch(27.99% 0.145 278.5)
XYZxyz(3.5714, 1.8435, 14.6327)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20126D #5F6D12
analogous
#12316D #20126D #4E126D
triadic
#20126D #6D2012 #126D20
tetradic
#20126D #6D1231 #5F6D12 #126D4E
square
#20126D #6D1231 #5F6D12 #126D4E
split-complementary
#20126D #6D4E12 #316D12
monochromatic
#08041A #110938 #20126D #2F1BA2 #3F23D6

Accessibility & contrast

On white

15.34
#20126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#20126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20126D
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20126D#FFFFFF#000000##FFFFFF
##20126D1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #20126d;
/* rgb */ color: rgb(32, 18, 109);
/* oklch */ color: oklch(28.0% 0.145 278.5);
Tailwind
colors: {
  custom: {
    50: '#695398',
    500: '#20126d',
    950: '#000000',
  },
}
SCSS
$custom: #20126d;
$custom-light: #695398;
$custom-dark: #000000;
JSON
{
  "hex": "#20126d",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 249.231,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27994,
    "c": 0.14487,
    "h": 278.5
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

primary
#20126D
secondary
#93A437
accent
#EE39D3
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #20126D

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

Preview Lab → · Contrast checker → · Palette generator →

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