#20147D#20147D

#20147D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.163 H 275.5°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#20147D
RGBrgb(32, 20, 125)
HSLhsl(247, 72%, 28%)
HSVhsv(247, 84%, 49%)
CMYKcmyk(74.4%, 84%, 0%, 51%)
CIE-LABlab(16.93, 39.56, -56.15)
CIE-LCHlch(16.93, 68.69, 305.17°)
OKLaboklab(30.15% 0.0155 -0.1623)
OKLCHoklch(30.15% 0.163 275.5)
XYZxyz(4.5463, 2.2876, 19.6000)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20147D #717D14
analogous
#143C7D #20147D #54147D
triadic
#20147D #7D2014 #147D20
tetradic
#20147D #7D143C #717D14 #147D54
square
#20147D #7D143C #717D14 #147D54
split-complementary
#20147D #7D5414 #3C7D14
monochromatic
#07041A #120C48 #20147D #2E1CB2 #422EDE

Accessibility & contrast

On white

14.41
#20147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#20147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20147D
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20147D#FFFFFF#000000##FFFFFF
##20147D1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20147d;
/* rgb */ color: rgb(32, 20, 125);
/* oklch */ color: oklch(30.1% 0.163 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c55a4',
    500: '#20147d',
    950: '#000000',
  },
}
SCSS
$custom: #20147d;
$custom-light: #6c55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20147d",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 246.857,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30147,
    "c": 0.16307,
    "h": 275.5
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#20147D
secondary
#A5B23A
accent
#EF39DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20147D

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

Preview Lab → · Contrast checker → · Palette generator →

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