#20126B#20126B

#20126B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.142 H 278.9°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#20126B
RGBrgb(32, 18, 107)
HSLhsl(249, 71%, 25%)
HSVhsv(249, 83%, 42%)
CMYKcmyk(70.1%, 83.2%, 0%, 58%)
CIE-LABlab(14.41, 34.73, -48.69)
CIE-LCHlch(14.41, 59.81, 305.50°)
OKLaboklab(27.76% 0.0219 -0.1406)
OKLCHoklch(27.76% 0.142 278.9)
XYZxyz(3.4650, 1.8009, 14.0721)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20126B #5D6B12
analogous
#12316B #20126B #4D126B
triadic
#20126B #6B2012 #126B20
tetradic
#20126B #6B1231 #5D6B12 #126B4D
square
#20126B #6B1231 #5D6B12 #126B4D
split-complementary
#20126B #6B4D12 #316B12
monochromatic
#08041A #100937 #20126B #301B9F #3F24D4

Accessibility & contrast

On white

15.44
#20126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20126B
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20126B#FFFFFF#000000##FFFFFF
##20126B1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286D
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20126b;
/* rgb */ color: rgb(32, 18, 107);
/* oklch */ color: oklch(27.8% 0.142 278.9);
Tailwind
colors: {
  custom: {
    50: '#685396',
    500: '#20126b',
    950: '#000000',
  },
}
SCSS
$custom: #20126b;
$custom-light: #685396;
$custom-dark: #000000;
JSON
{
  "hex": "#20126b",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 249.438,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27759,
    "c": 0.14233,
    "h": 278.9
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#20126B
secondary
#91A236
accent
#EE3AD2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #20126B

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

Preview Lab → · Contrast checker → · Palette generator →

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