#20107E#20107E

#20107E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.167 H 275.7°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#20107E
RGBrgb(32, 16, 126)
HSLhsl(249, 77%, 28%)
HSVhsv(249, 87%, 49%)
CMYKcmyk(74.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(16.42, 41.74, -57.63)
CIE-LCHlch(16.42, 71.16, 305.91°)
OKLaboklab(29.83% 0.0167 -0.1665)
OKLCHoklch(29.83% 0.167 275.7)
XYZxyz(4.5456, 2.1836, 19.9165)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20107E #6E7E10
analogous
#10377E #20107E #57107E
triadic
#20107E #7E2010 #107E20
tetradic
#20107E #7E1037 #6E7E10 #107E57
square
#20107E #7E1037 #6E7E10 #107E57
split-complementary
#20107E #7E5710 #377E10
monochromatic
#07031B #120948 #20107E #2E17B4 #4125E3

Accessibility & contrast

On white

14.62
#20107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#20107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20107E
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20107E#FFFFFF#000000##FFFFFF
##20107E1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20107e;
/* rgb */ color: rgb(32, 16, 126);
/* oklch */ color: oklch(29.8% 0.167 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d53a5',
    500: '#20107e',
    950: '#000000',
  },
}
SCSS
$custom: #20107e;
$custom-light: #6d53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20107e",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 248.727,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29834,
    "c": 0.16738,
    "h": 275.7
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#20107E
secondary
#A2B436
accent
#F434D8
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20107E

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

Preview Lab → · Contrast checker → · Palette generator →

#20107E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva