#20147C#20147C

#20147C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.162 H 275.6°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#20147C
RGBrgb(32, 20, 124)
HSLhsl(247, 72%, 28%)
HSVhsv(247, 84%, 49%)
CMYKcmyk(74.2%, 83.9%, 0%, 51.4%)
CIE-LABlab(16.81, 39.24, -55.72)
CIE-LCHlch(16.81, 68.15, 305.16°)
OKLaboklab(30.03% 0.0158 -0.1611)
OKLCHoklch(30.03% 0.162 275.6)
XYZxyz(4.4827, 2.2622, 19.2653)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20147C #707C14
analogous
#143C7C #20147C #54147C
triadic
#20147C #7C2014 #147C20
tetradic
#20147C #7C143C #707C14 #147C54
square
#20147C #7C143C #707C14 #147C54
split-complementary
#20147C #7C5414 #3C7C14
monochromatic
#07041A #120B47 #20147C #2E1DB1 #422DDD

Accessibility & contrast

On white

14.46
#20147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#20147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20147C
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20147C#FFFFFF#000000##FFFFFF
##20147C1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20147c;
/* rgb */ color: rgb(32, 20, 124);
/* oklch */ color: oklch(30.0% 0.162 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c55a3',
    500: '#20147c',
    950: '#000000',
  },
}
SCSS
$custom: #20147c;
$custom-light: #6c55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20147c",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 246.923,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30027,
    "c": 0.16185,
    "h": 275.6
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20147C

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

Preview Lab → · Contrast checker → · Palette generator →

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