#20147E#20147E

#20147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.164 H 275.3°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#20147E
RGBrgb(32, 20, 126)
HSLhsl(247, 73%, 29%)
HSVhsv(247, 84%, 49%)
CMYKcmyk(74.6%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.05, 39.88, -56.59)
CIE-LCHlch(17.05, 69.23, 305.18°)
OKLaboklab(30.27% 0.0153 -0.1636)
OKLCHoklch(30.27% 0.164 275.3)
XYZxyz(4.6105, 2.3133, 19.9382)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20147E #727E14
analogous
#143D7E #20147E #55147E
triadic
#20147E #7E2014 #147E20
tetradic
#20147E #7E143D #727E14 #147E55
square
#20147E #7E143D #727E14 #147E55
split-complementary
#20147E #7E5514 #3D7E14
monochromatic
#07041A #130C49 #20147E #2D1CB3 #422EDE

Accessibility & contrast

On white

14.36
#20147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20147E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20147E#FFFFFF#000000##FFFFFF
##20147E1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20147e;
/* rgb */ color: rgb(32, 20, 126);
/* oklch */ color: oklch(30.3% 0.164 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#20147e',
    950: '#000000',
  },
}
SCSS
$custom: #20147e;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20147e",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 246.792,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30268,
    "c": 0.1643,
    "h": 275.3
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#20147E
secondary
#A6B33A
accent
#EF38DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20147E

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

Preview Lab → · Contrast checker → · Palette generator →

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