#20127F#20127F

#20127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.167 H 275.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#20127F
RGBrgb(32, 18, 127)
HSLhsl(248, 75%, 28%)
HSVhsv(248, 86%, 50%)
CMYKcmyk(74.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.85, 41.15, -57.55)
CIE-LCHlch(16.85, 70.75, 305.57°)
OKLaboklab(30.17% 0.0157 -0.1664)
OKLCHoklch(30.17% 0.167 275.4)
XYZxyz(4.6415, 2.2715, 20.2684)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20127F #717F12
analogous
#123B7F #20127F #56127F
triadic
#20127F #7F2012 #127F20
tetradic
#20127F #7F123B #717F12 #127F56
square
#20127F #7F123B #717F12 #127F56
split-complementary
#20127F #7F5612 #3B7F12
monochromatic
#07041B #120A49 #20127F #2E1AB5 #422BE1

Accessibility & contrast

On white

14.44
#20127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20127F
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20127F#FFFFFF#000000##FFFFFF
##20127F1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20127f;
/* rgb */ color: rgb(32, 18, 127);
/* oklch */ color: oklch(30.2% 0.167 275.4);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#20127f',
    950: '#000000',
  },
}
SCSS
$custom: #20127f;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20127f",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 247.706,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30166,
    "c": 0.16711,
    "h": 275.4
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#20127F
secondary
#A5B538
accent
#F236DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20127F

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

Preview Lab → · Contrast checker → · Palette generator →

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