#20318F#20318F

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

Color values

HEX#20318F
RGBrgb(32, 49, 143)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 78%, 56%)
CMYKcmyk(77.6%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.22, 28.37, -53.80)
CIE-LCHlch(25.22, 60.82, 297.80°)
OKLaboklab(36.65% -0.0026 -0.1556)
OKLCHoklch(36.65% 0.156 269)
XYZxyz(6.6502, 4.4861, 26.4967)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20318F #8F7E20
analogous
#20698F #20318F #47208F
triadic
#20318F #8F2031 #318F20
tetradic
#20318F #8F2069 #8F7E20 #208F47
square
#20318F #8F2069 #8F7E20 #208F47
split-complementary
#20318F #8F4720 #698F20
monochromatic
#0A0F2B #15205D #20318F #2B42C1 #5166D8

Accessibility & contrast

On white

11.07
#20318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#20318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20318F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20318F#FFFFFF#000000##FFFFFF
##20318F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #20318f;
/* rgb */ color: rgb(32, 49, 143);
/* oklch */ color: oklch(36.7% 0.156 269.0);
Tailwind
colors: {
  custom: {
    50: '#6e69b1',
    500: '#20318f',
    950: '#000000',
  },
}
SCSS
$custom: #20318f;
$custom-light: #6e69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20318f",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 230.811,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.15562,
    "h": 269
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#20318F
secondary
#BBAB4F
accent
#CD41E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #20318F

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

Preview Lab → · Contrast checker → · Palette generator →

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