#20126C#20126C

#20126C is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.144 H 278.7°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#20126C
RGBrgb(32, 18, 108)
HSLhsl(249, 71%, 25%)
HSVhsv(249, 83%, 42%)
CMYKcmyk(70.4%, 83.3%, 0%, 57.6%)
CIE-LABlab(14.52, 35.06, -49.15)
CIE-LCHlch(14.52, 60.37, 305.50°)
OKLaboklab(27.88% 0.0216 -0.142)
OKLCHoklch(27.88% 0.144 278.7)
XYZxyz(3.5179, 1.8221, 14.3508)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20126C #5E6C12
analogous
#12316C #20126C #4D126C
triadic
#20126C #6C2012 #126C20
tetradic
#20126C #6C1231 #5E6C12 #126C4D
square
#20126C #6C1231 #5E6C12 #126C4D
split-complementary
#20126C #6C4D12 #316C12
monochromatic
#08041A #100938 #20126C #301BA0 #3F23D5

Accessibility & contrast

On white

15.39
#20126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20126C
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20126C#FFFFFF#000000##FFFFFF
##20126C1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #20126c;
/* rgb */ color: rgb(32, 18, 108);
/* oklch */ color: oklch(27.9% 0.144 278.7);
Tailwind
colors: {
  custom: {
    50: '#685397',
    500: '#20126c',
    950: '#000000',
  },
}
SCSS
$custom: #20126c;
$custom-light: #685397;
$custom-dark: #000000;
JSON
{
  "hex": "#20126c",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 249.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27876,
    "c": 0.1436,
    "h": 278.7
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#20126C
secondary
#92A336
accent
#EE3AD2
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #20126C

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

Preview Lab → · Contrast checker → · Palette generator →

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