#20187D#20187D

#20187D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.160 H 275.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#20187D
RGBrgb(32, 24, 125)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(74.4%, 80.8%, 0%, 51%)
CIE-LABlab(17.65, 37.48, -54.96)
CIE-LCHlch(17.65, 66.52, 304.29°)
OKLaboklab(30.65% 0.0138 -0.1589)
OKLCHoklch(30.65% 0.16 275)
XYZxyz(4.6227, 2.4406, 19.6255)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20187D #757D18
analogous
#18437D #20187D #53187D
triadic
#20187D #7D2018 #187D20
tetradic
#20187D #7D1843 #757D18 #187D53
square
#20187D #7D1843 #757D18 #187D53
split-complementary
#20187D #7D5318 #437D18
monochromatic
#07051A #130E4A #20187D #2D22B0 #4437D9

Accessibility & contrast

On white

14.11
#20187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20187D
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20187D#FFFFFF#000000##FFFFFF
##20187D1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20187d;
/* rgb */ color: rgb(32, 24, 125);
/* oklch */ color: oklch(30.6% 0.160 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c57a4',
    500: '#20187d',
    950: '#000000',
  },
}
SCSS
$custom: #20187d;
$custom-light: #6c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20187d",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 244.752,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.15954,
    "h": 275
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20187D

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

Preview Lab → · Contrast checker → · Palette generator →

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