#20187A#20187A

#20187A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.156 H 275.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#20187A
RGBrgb(32, 24, 122)
HSLhsl(245, 67%, 29%)
HSVhsv(245, 80%, 48%)
CMYKcmyk(73.8%, 80.3%, 0%, 52.2%)
CIE-LABlab(17.30, 36.47, -53.63)
CIE-LCHlch(17.30, 64.85, 304.22°)
OKLaboklab(30.3% 0.0146 -0.1551)
OKLCHoklch(30.3% 0.156 275.4)
XYZxyz(4.4340, 2.3651, 18.6314)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20187A #727A18
analogous
#18417A #20187A #51187A
triadic
#20187A #7A2018 #187A20
tetradic
#20187A #7A1841 #727A18 #187A51
square
#20187A #7A1841 #727A18 #187A51
split-complementary
#20187A #7A5118 #417A18
monochromatic
#07051A #130E47 #20187A #2D22AD #4235D7

Accessibility & contrast

On white

14.26
#20187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20187A
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20187A#FFFFFF#000000##FFFFFF
##20187A1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20187a;
/* rgb */ color: rgb(32, 24, 122);
/* oklch */ color: oklch(30.3% 0.156 275.4);
Tailwind
colors: {
  custom: {
    50: '#6b57a2',
    500: '#20187a',
    950: '#000000',
  },
}
SCSS
$custom: #20187a;
$custom-light: #6b57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20187a",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 244.898,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30298,
    "c": 0.15574,
    "h": 275.4
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#20187A
secondary
#A6AF3F
accent
#EA3EDC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #20187A

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

Preview Lab → · Contrast checker → · Palette generator →

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