#20147A#20147A

#20147A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.159 H 275.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#20147A
RGBrgb(32, 20, 122)
HSLhsl(247, 72%, 28%)
HSVhsv(247, 84%, 48%)
CMYKcmyk(73.8%, 83.6%, 0%, 52.2%)
CIE-LABlab(16.56, 38.59, -54.84)
CIE-LCHlch(16.56, 67.06, 305.14°)
OKLaboklab(29.79% 0.0164 -0.1585)
OKLCHoklch(29.79% 0.159 275.9)
XYZxyz(4.3575, 2.2121, 18.6059)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20147A #6E7A14
analogous
#143B7A #20147A #53147A
triadic
#20147A #7A2014 #147A20
tetradic
#20147A #7A143B #6E7A14 #147A53
square
#20147A #7A143B #6E7A14 #147A53
split-complementary
#20147A #7A5314 #3B7A14
monochromatic
#07041A #120B45 #20147A #2E1DAF #412CDC

Accessibility & contrast

On white

14.56
#20147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#20147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20147A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20147A#FFFFFF#000000##FFFFFF
##20147A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20147a;
/* rgb */ color: rgb(32, 20, 122);
/* oklch */ color: oklch(29.8% 0.159 275.9);
Tailwind
colors: {
  custom: {
    50: '#6c55a2',
    500: '#20147a',
    950: '#000000',
  },
}
SCSS
$custom: #20147a;
$custom-light: #6c55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20147a",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 247.059,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29786,
    "c": 0.15938,
    "h": 275.9
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#20147A
secondary
#A2B03A
accent
#EF39D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20147A

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

Preview Lab → · Contrast checker → · Palette generator →

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