#20318E#20318E

#20318E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.154 H 269.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#20318E
RGBrgb(32, 49, 142)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 56%)
CMYKcmyk(77.5%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.13, 27.99, -53.33)
CIE-LCHlch(25.13, 60.23, 297.69°)
OKLaboklab(36.56% -0.0026 -0.1542)
OKLCHoklch(36.56% 0.154 269)
XYZxyz(6.5748, 4.4560, 26.0995)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20318E #8E7D20
analogous
#20688E #20318E #46208E
triadic
#20318E #8E2031 #318E20
tetradic
#20318E #8E2068 #8E7D20 #208E46
square
#20318E #8E2068 #8E7D20 #208E46
split-complementary
#20318E #8E4620 #688E20
monochromatic
#090F2A #15205C #20318E #2B42C0 #5166D8

Accessibility & contrast

On white

11.10
#20318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#20318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20318E
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20318E#FFFFFF#000000##FFFFFF
##20318E1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #20318e;
/* rgb */ color: rgb(32, 49, 142);
/* oklch */ color: oklch(36.6% 0.154 269.0);
Tailwind
colors: {
  custom: {
    50: '#6e69b0',
    500: '#20318e',
    950: '#000000',
  },
}
SCSS
$custom: #20318e;
$custom-light: #6e69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20318e",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 230.727,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36555,
    "c": 0.15425,
    "h": 269
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#20318E
secondary
#BBAA4F
accent
#CD42E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #20318E

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

Preview Lab → · Contrast checker → · Palette generator →

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