#20308E#20308E

#20308E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.155 H 269.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#20308E
RGBrgb(32, 48, 142)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 56%)
CMYKcmyk(77.5%, 66.2%, 0%, 44.3%)
CIE-LABlab(24.87, 28.66, -53.75)
CIE-LCHlch(24.87, 60.92, 298.07°)
OKLaboklab(36.37% -0.002 -0.1555)
OKLCHoklch(36.37% 0.155 269.3)
XYZxyz(6.5334, 4.3733, 26.0857)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20308E #8E7E20
analogous
#20678E #20308E #47208E
triadic
#20308E #8E2030 #308E20
tetradic
#20308E #8E2067 #8E7E20 #208E47
square
#20308E #8E2067 #8E7E20 #208E47
split-complementary
#20308E #8E4720 #678E20
monochromatic
#090E2A #151F5C #20308E #2B41C0 #5164D8

Accessibility & contrast

On white

11.20
#20308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#20308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20308E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20308E#FFFFFF#000000##FFFFFF
##20308E1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20308e;
/* rgb */ color: rgb(32, 48, 142);
/* oklch */ color: oklch(36.4% 0.155 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e68b0',
    500: '#20308e',
    950: '#000000',
  },
}
SCSS
$custom: #20308e;
$custom-light: #6e68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20308e",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 231.273,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36367,
    "c": 0.15548,
    "h": 269.3
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#20308E
secondary
#BBAB4F
accent
#CE42E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #20308E

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

Preview Lab → · Contrast checker → · Palette generator →

#20308E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva