#20318D#20318D

#20318D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.153 H 269.0°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#20318D
RGBrgb(32, 49, 141)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(77.3%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.03, 27.60, -52.86)
CIE-LCHlch(25.03, 59.64, 297.57°)
OKLaboklab(36.46% -0.0026 -0.1529)
OKLCHoklch(36.46% 0.153 269)
XYZxyz(6.5000, 4.4261, 25.7059)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20318D #8D7C20
analogous
#20688D #20318D #46208D
triadic
#20318D #8D2031 #318D20
tetradic
#20318D #8D2068 #8D7C20 #208D46
square
#20318D #8D2068 #8D7C20 #208D46
split-complementary
#20318D #8D4620 #688D20
monochromatic
#090E29 #15205B #20318D #2B42BF #5065D7

Accessibility & contrast

On white

11.14
#20318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20318D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20318D#FFFFFF#000000##FFFFFF
##20318D1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #20318d;
/* rgb */ color: rgb(32, 49, 141);
/* oklch */ color: oklch(36.5% 0.153 269.0);
Tailwind
colors: {
  custom: {
    50: '#6e69af',
    500: '#20318d',
    950: '#000000',
  },
}
SCSS
$custom: #20318d;
$custom-light: #6e69af;
$custom-dark: #000000;
JSON
{
  "hex": "#20318d",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 230.642,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36459,
    "c": 0.15288,
    "h": 269
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#20318D
secondary
#BAAA4E
accent
#CC42E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20318D

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

Preview Lab → · Contrast checker → · Palette generator →

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