#20127B#20127B

#20127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.162 H 276.0°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#20127B
RGBrgb(32, 18, 123)
HSLhsl(248, 74%, 28%)
HSVhsv(248, 85%, 48%)
CMYKcmyk(74%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.35, 39.89, -55.83)
CIE-LCHlch(16.35, 68.62, 305.55°)
OKLaboklab(29.68% 0.0169 -0.1614)
OKLCHoklch(29.68% 0.162 276)
XYZxyz(4.3860, 2.1693, 18.9226)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20127B #6D7B12
analogous
#12387B #20127B #54127B
triadic
#20127B #7B2012 #127B20
tetradic
#20127B #7B1238 #6D7B12 #127B54
square
#20127B #7B1238 #6D7B12 #127B54
split-complementary
#20127B #7B5412 #387B12
monochromatic
#07041B #120A46 #20127B #2E1AB0 #4028E0

Accessibility & contrast

On white

14.64
#20127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#20127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20127B
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20127B#FFFFFF#000000##FFFFFF
##20127B1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20127b;
/* rgb */ color: rgb(32, 18, 123);
/* oklch */ color: oklch(29.7% 0.162 276.0);
Tailwind
colors: {
  custom: {
    50: '#6c54a2',
    500: '#20127b',
    950: '#000000',
  },
}
SCSS
$custom: #20127b;
$custom-light: #6c54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20127b",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 248,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29676,
    "c": 0.16226,
    "h": 276
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#20127B
secondary
#A1B138
accent
#F137D8
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20127B

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

Preview Lab → · Contrast checker → · Palette generator →

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