#20147F#20147F

#20147F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.166 H 275.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#20147F
RGBrgb(32, 20, 127)
HSLhsl(247, 73%, 29%)
HSVhsv(247, 84%, 50%)
CMYKcmyk(74.8%, 84.3%, 0%, 50.2%)
CIE-LABlab(17.18, 40.20, -57.02)
CIE-LCHlch(17.18, 69.77, 305.19°)
OKLaboklab(30.39% 0.015 -0.1648)
OKLCHoklch(30.39% 0.166 275.2)
XYZxyz(4.6753, 2.3392, 20.2797)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20147F #737F14
analogous
#143E7F #20147F #56147F
triadic
#20147F #7F2014 #147F20
tetradic
#20147F #7F143E #737F14 #147F56
square
#20147F #7F143E #737F14 #147F56
split-complementary
#20147F #7F5614 #3E7F14
monochromatic
#07041A #130C4A #20147F #2D1CB4 #432FDE

Accessibility & contrast

On white

14.31
#20147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20147F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20147F#FFFFFF#000000##FFFFFF
##20147F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20147f;
/* rgb */ color: rgb(32, 20, 127);
/* oklch */ color: oklch(30.4% 0.166 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#20147f',
    950: '#000000',
  },
}
SCSS
$custom: #20147f;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20147f",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 246.729,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30389,
    "c": 0.16553,
    "h": 275.2
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20147F

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

Preview Lab → · Contrast checker → · Palette generator →

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