#20128F#20128F

#20128F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.186 H 273.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#20128F
RGBrgb(32, 18, 143)
HSLhsl(247, 78%, 32%)
HSVhsv(247, 87%, 56%)
CMYKcmyk(77.6%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.90, 46.08, -64.24)
CIE-LCHlch(18.90, 79.05, 305.65°)
OKLaboklab(32.15% 0.0108 -0.1857)
OKLCHoklch(32.15% 0.186 273.3)
XYZxyz(5.7682, 2.7222, 26.2027)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20128F #818F12
analogous
#12438F #20128F #5F128F
triadic
#20128F #8F2012 #128F20
tetradic
#20128F #8F1243 #818F12 #128F5F
square
#20128F #8F1243 #818F12 #128F5F
split-complementary
#20128F #8F5F12 #438F12
monochromatic
#080422 #140B59 #20128F #2C19C5 #4936E6

Accessibility & contrast

On white

13.60
#20128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20128F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20128F#FFFFFF#000000##FFFFFF
##20128F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20128f;
/* rgb */ color: rgb(32, 18, 143);
/* oklch */ color: oklch(32.2% 0.186 273.3);
Tailwind
colors: {
  custom: {
    50: '#7156b1',
    500: '#20128f',
    950: '#000000',
  },
}
SCSS
$custom: #20128f;
$custom-light: #7156b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20128f",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 246.72,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32153,
    "c": 0.18604,
    "h": 273.3
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#20128F
secondary
#B4C33A
accent
#F434DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20128F

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

Preview Lab → · Contrast checker → · Palette generator →

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