#20126F#20126F

#20126F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.147 H 278.1°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#20126F
RGBrgb(32, 18, 111)
HSLhsl(249, 72%, 25%)
HSVhsv(249, 84%, 44%)
CMYKcmyk(71.2%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.88, 36.04, -50.52)
CIE-LCHlch(14.88, 62.05, 305.50°)
OKLaboklab(28.23% 0.0207 -0.1459)
OKLCHoklch(28.23% 0.147 278.1)
XYZxyz(3.6803, 1.8871, 15.2061)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20126F #616F12
analogous
#12336F #20126F #4E126F
triadic
#20126F #6F2012 #126F20
tetradic
#20126F #6F1233 #616F12 #126F4E
square
#20126F #6F1233 #616F12 #126F4E
split-complementary
#20126F #6F4E12 #336F12
monochromatic
#08041A #11093A #20126F #2F1BA4 #3E23D8

Accessibility & contrast

On white

15.25
#20126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#20126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20126F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20126F#FFFFFF#000000##FFFFFF
##20126F1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #20126f;
/* rgb */ color: rgb(32, 18, 111);
/* oklch */ color: oklch(28.2% 0.147 278.1);
Tailwind
colors: {
  custom: {
    50: '#695399',
    500: '#20126f',
    950: '#000000',
  },
}
SCSS
$custom: #20126f;
$custom-light: #695399;
$custom-dark: #000000;
JSON
{
  "hex": "#20126f",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 249.032,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28231,
    "c": 0.1474,
    "h": 278.1
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#20126F
secondary
#95A637
accent
#EF39D3
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #20126F

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

Preview Lab → · Contrast checker → · Palette generator →

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