#20318A#20318A

#20318A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.149 H 269.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#20318A
RGBrgb(32, 49, 138)
HSLhsl(230, 62%, 33%)
HSVhsv(230, 77%, 54%)
CMYKcmyk(76.8%, 64.5%, 0%, 45.9%)
CIE-LABlab(24.76, 26.45, -51.45)
CIE-LCHlch(24.76, 57.85, 297.21°)
OKLaboklab(36.17% -0.0024 -0.1487)
OKLCHoklch(36.17% 0.149 269.1)
XYZxyz(6.2798, 4.3380, 24.5462)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20318A #8A7920
analogous
#20668A #20318A #44208A
triadic
#20318A #8A2031 #318A20
tetradic
#20318A #8A2066 #8A7920 #208A44
square
#20318A #8A2066 #8A7920 #208A44
split-complementary
#20318A #8A4420 #668A20
monochromatic
#090E27 #141F58 #20318A #2C43BC #4E64D6

Accessibility & contrast

On white

11.24
#20318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20318A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20318A#FFFFFF#000000##FFFFFF
##20318A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #20318a;
/* rgb */ color: rgb(32, 49, 138);
/* oklch */ color: oklch(36.2% 0.149 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d69ad',
    500: '#20318a',
    950: '#000000',
  },
}
SCSS
$custom: #20318a;
$custom-light: #6d69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20318a",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 230.377,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36172,
    "c": 0.14874,
    "h": 269.1
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#20318A
secondary
#B9A84D
accent
#CB42E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20318A

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

Preview Lab → · Contrast checker → · Palette generator →

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