#20127E#20127E

#20127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.166 H 275.5°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#20127E
RGBrgb(32, 18, 126)
HSLhsl(248, 75%, 28%)
HSVhsv(248, 86%, 49%)
CMYKcmyk(74.6%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.73, 40.84, -57.13)
CIE-LCHlch(16.73, 70.22, 305.56°)
OKLaboklab(30.04% 0.016 -0.1651)
OKLCHoklch(30.04% 0.166 275.5)
XYZxyz(4.5766, 2.2456, 19.9269)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20127E #707E12
analogous
#123A7E #20127E #56127E
triadic
#20127E #7E2012 #127E20
tetradic
#20127E #7E123A #707E12 #127E56
square
#20127E #7E123A #707E12 #127E56
split-complementary
#20127E #7E5612 #3A7E12
monochromatic
#07041B #120A48 #20127E #2E1AB4 #422AE1

Accessibility & contrast

On white

14.49
#20127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#20127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20127E
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20127E#FFFFFF#000000##FFFFFF
##20127E1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20127e;
/* rgb */ color: rgb(32, 18, 126);
/* oklch */ color: oklch(30.0% 0.166 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#20127e',
    950: '#000000',
  },
}
SCSS
$custom: #20127e;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20127e",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 247.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30043,
    "c": 0.16589,
    "h": 275.5
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#20127E
secondary
#A4B438
accent
#F236D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20127E

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

Preview Lab → · Contrast checker → · Palette generator →

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