#20318C#20318C

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

Color values

HEX#20318C
RGBrgb(32, 49, 140)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(77.1%, 65%, 0%, 45.1%)
CIE-LABlab(24.94, 27.22, -52.39)
CIE-LCHlch(24.94, 59.04, 297.45°)
OKLaboklab(36.36% -0.0025 -0.1515)
OKLCHoklch(36.36% 0.152 269.1)
XYZxyz(6.4260, 4.3965, 25.3158)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20318C #8C7B20
analogous
#20678C #20318C #45208C
triadic
#20318C #8C2031 #318C20
tetradic
#20318C #8C2067 #8C7B20 #208C45
square
#20318C #8C2067 #8C7B20 #208C45
split-complementary
#20318C #8C4520 #678C20
monochromatic
#090E28 #15205A #20318C #2B42BE #5065D7

Accessibility & contrast

On white

11.17
#20318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#20318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20318C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20318C#FFFFFF#000000##FFFFFF
##20318C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #20318c;
/* rgb */ color: rgb(32, 49, 140);
/* oklch */ color: oklch(36.4% 0.151 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d69ae',
    500: '#20318c',
    950: '#000000',
  },
}
SCSS
$custom: #20318c;
$custom-light: #6d69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20318c",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 230.556,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36363,
    "c": 0.1515,
    "h": 269.1
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20318C

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

Preview Lab → · Contrast checker → · Palette generator →

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