#20187C#20187C

#20187C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.158 H 275.1°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#20187C
RGBrgb(32, 24, 124)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(74.2%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.53, 37.14, -54.52)
CIE-LCHlch(17.53, 65.97, 304.27°)
OKLaboklab(30.53% 0.0141 -0.1577)
OKLCHoklch(30.53% 0.158 275.1)
XYZxyz(4.5592, 2.4151, 19.2908)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20187C #747C18
analogous
#18427C #20187C #52187C
triadic
#20187C #7C2018 #187C20
tetradic
#20187C #7C1842 #747C18 #187C52
square
#20187C #7C1842 #747C18 #187C52
split-complementary
#20187C #7C5218 #427C18
monochromatic
#07051A #130E49 #20187C #2D22AF #4336D8

Accessibility & contrast

On white

14.16
#20187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20187C
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20187C#FFFFFF#000000##FFFFFF
##20187C1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20187c;
/* rgb */ color: rgb(32, 24, 124);
/* oklch */ color: oklch(30.5% 0.158 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c57a3',
    500: '#20187c',
    950: '#000000',
  },
}
SCSS
$custom: #20187c;
$custom-light: #6c57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20187c",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 244.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3053,
    "c": 0.15828,
    "h": 275.1
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#20187C
secondary
#A8B13F
accent
#EA3DDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20187C

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

Preview Lab → · Contrast checker → · Palette generator →

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