#20187B#20187B

#20187B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.157 H 275.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#20187B
RGBrgb(32, 24, 123)
HSLhsl(245, 67%, 29%)
HSVhsv(245, 80%, 48%)
CMYKcmyk(74%, 80.5%, 0%, 51.8%)
CIE-LABlab(17.41, 36.81, -54.07)
CIE-LCHlch(17.41, 65.41, 304.24°)
OKLaboklab(30.41% 0.0143 -0.1564)
OKLCHoklch(30.41% 0.157 275.2)
XYZxyz(4.4963, 2.3900, 18.9594)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20187B #737B18
analogous
#18427B #20187B #52187B
triadic
#20187B #7B2018 #187B20
tetradic
#20187B #7B1842 #737B18 #187B52
square
#20187B #7B1842 #737B18 #187B52
split-complementary
#20187B #7B5218 #427B18
monochromatic
#07051A #130E48 #20187B #2D22AE #4336D8

Accessibility & contrast

On white

14.21
#20187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#20187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20187B
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20187B#FFFFFF#000000##FFFFFF
##20187B1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20187b;
/* rgb */ color: rgb(32, 24, 123);
/* oklch */ color: oklch(30.4% 0.157 275.2);
Tailwind
colors: {
  custom: {
    50: '#6b57a2',
    500: '#20187b',
    950: '#000000',
  },
}
SCSS
$custom: #20187b;
$custom-light: #6b57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20187b",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 244.848,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30414,
    "c": 0.15702,
    "h": 275.2
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#20187B
secondary
#A7B03F
accent
#EA3EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20187B

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

Preview Lab → · Contrast checker → · Palette generator →

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