#20147B#20147B

#20147B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.161 H 275.8°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#20147B
RGBrgb(32, 20, 123)
HSLhsl(247, 72%, 28%)
HSVhsv(247, 84%, 48%)
CMYKcmyk(74%, 83.7%, 0%, 51.8%)
CIE-LABlab(16.68, 38.92, -55.28)
CIE-LCHlch(16.68, 67.60, 305.15°)
OKLaboklab(29.91% 0.0161 -0.1598)
OKLCHoklch(29.91% 0.161 275.8)
XYZxyz(4.4198, 2.2370, 18.9339)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20147B #6F7B14
analogous
#143C7B #20147B #53147B
triadic
#20147B #7B2014 #147B20
tetradic
#20147B #7B143C #6F7B14 #147B53
square
#20147B #7B143C #6F7B14 #147B53
split-complementary
#20147B #7B5314 #3C7B14
monochromatic
#07041A #120B46 #20147B #2E1DB0 #412DDD

Accessibility & contrast

On white

14.51
#20147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20147B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20147B#FFFFFF#000000##FFFFFF
##20147B1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20147b;
/* rgb */ color: rgb(32, 20, 123);
/* oklch */ color: oklch(29.9% 0.161 275.8);
Tailwind
colors: {
  custom: {
    50: '#6c55a2',
    500: '#20147b',
    950: '#000000',
  },
}
SCSS
$custom: #20147b;
$custom-light: #6c55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20147b",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 246.99,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29906,
    "c": 0.16061,
    "h": 275.8
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20147B

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

Preview Lab → · Contrast checker → · Palette generator →

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