#20187E#20187E

#20187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 274.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#20187E
RGBrgb(32, 24, 126)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(74.6%, 81%, 0%, 50.6%)
CIE-LABlab(17.77, 37.81, -55.40)
CIE-LCHlch(17.77, 67.08, 304.31°)
OKLaboklab(30.76% 0.0136 -0.1602)
OKLCHoklch(30.76% 0.161 274.8)
XYZxyz(4.6869, 2.4662, 19.9636)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20187E #767E18
analogous
#18437E #20187E #53187E
triadic
#20187E #7E2018 #187E20
tetradic
#20187E #7E1843 #767E18 #187E53
square
#20187E #7E1843 #767E18 #187E53
split-complementary
#20187E #7E5318 #437E18
monochromatic
#07051A #130E4B #20187E #2D22B1 #4437D9

Accessibility & contrast

On white

14.06
#20187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#20187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20187E
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20187E#FFFFFF#000000##FFFFFF
##20187E1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20187e;
/* rgb */ color: rgb(32, 24, 126);
/* oklch */ color: oklch(30.8% 0.161 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c57a5',
    500: '#20187e',
    950: '#000000',
  },
}
SCSS
$custom: #20187e;
$custom-light: #6c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20187e",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 244.706,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30764,
    "c": 0.1608,
    "h": 274.8
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#20187E
secondary
#A9B23F
accent
#EB3DDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20187E

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

Preview Lab → · Contrast checker → · Palette generator →

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