#20318B#20318B

#20318B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.150 H 269.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#20318B
RGBrgb(32, 49, 139)
HSLhsl(230, 63%, 34%)
HSVhsv(230, 77%, 55%)
CMYKcmyk(77%, 64.7%, 0%, 45.5%)
CIE-LABlab(24.85, 26.84, -51.92)
CIE-LCHlch(24.85, 58.45, 297.33°)
OKLaboklab(36.27% -0.0025 -0.1501)
OKLCHoklch(36.27% 0.15 269.1)
XYZxyz(6.3526, 4.3671, 24.9292)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20318B #8B7A20
analogous
#20668B #20318B #44208B
triadic
#20318B #8B2031 #318B20
tetradic
#20318B #8B2066 #8B7A20 #208B44
square
#20318B #8B2066 #8B7A20 #208B44
split-complementary
#20318B #8B4420 #668B20
monochromatic
#090E28 #151F59 #20318B #2B43BD #4F64D6

Accessibility & contrast

On white

11.21
#20318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#20318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20318B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20318B#FFFFFF#000000##FFFFFF
##20318B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #20318b;
/* rgb */ color: rgb(32, 49, 139);
/* oklch */ color: oklch(36.3% 0.150 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d69ae',
    500: '#20318b',
    950: '#000000',
  },
}
SCSS
$custom: #20318b;
$custom-light: #6d69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20318b",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 230.467,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36267,
    "c": 0.15012,
    "h": 269.1
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#20318B
secondary
#BAA84D
accent
#CC42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20318B

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

Preview Lab → · Contrast checker → · Palette generator →

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