#20188F#20188F

#20188F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.182 H 272.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#20188F
RGBrgb(32, 24, 143)
HSLhsl(244, 71%, 33%)
HSVhsv(244, 83%, 56%)
CMYKcmyk(77.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.81, 43.36, -62.71)
CIE-LCHlch(19.81, 76.24, 304.66°)
OKLaboklab(32.79% 0.0092 -0.1814)
OKLCHoklch(32.79% 0.182 272.9)
XYZxyz(5.8786, 2.9429, 26.2395)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20188F #878F18
analogous
#184B8F #20188F #5C188F
triadic
#20188F #8F2018 #188F20
tetradic
#20188F #8F184B #878F18 #188F5C
square
#20188F #8F184B #878F18 #188F5C
split-complementary
#20188F #8F5C18 #4B8F18
monochromatic
#090626 #140F5B #20188F #2C21C3 #4D42DF

Accessibility & contrast

On white

13.22
#20188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#20188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20188F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20188F#FFFFFF#000000##FFFFFF
##20188F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20188f;
/* rgb */ color: rgb(32, 24, 143);
/* oklch */ color: oklch(32.8% 0.182 272.9);
Tailwind
colors: {
  custom: {
    50: '#7159b1',
    500: '#20188f',
    950: '#000000',
  },
}
SCSS
$custom: #20188f;
$custom-light: #7159b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20188f",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 244.034,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32786,
    "c": 0.18166,
    "h": 272.9
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#20188F
secondary
#B8C043
accent
#EE3AE2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #20188F

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

Preview Lab → · Contrast checker → · Palette generator →

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