#20338E#20338E

#20338E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.152 H 268.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#20338E
RGBrgb(32, 51, 142)
HSLhsl(230, 63%, 34%)
HSVhsv(230, 77%, 56%)
CMYKcmyk(77.5%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.64, 26.63, -52.48)
CIE-LCHlch(25.64, 58.85, 296.91°)
OKLaboklab(36.94% -0.0039 -0.1517)
OKLCHoklch(36.94% 0.152 268.5)
XYZxyz(6.6603, 4.6270, 26.1280)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20338E #8E7B20
analogous
#206A8E #20338E #44208E
triadic
#20338E #8E2033 #338E20
tetradic
#20338E #8E206A #8E7B20 #208E44
square
#20338E #8E206A #8E7B20 #208E44
split-complementary
#20338E #8E4420 #6A8E20
monochromatic
#090F2A #15215C #20338E #2B45C0 #5168D8

Accessibility & contrast

On white

10.91
#20338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#20338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20338E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20338E#FFFFFF#000000##FFFFFF
##20338E1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20338e;
/* rgb */ color: rgb(32, 51, 142);
/* oklch */ color: oklch(36.9% 0.152 268.5);
Tailwind
colors: {
  custom: {
    50: '#6e6ab0',
    500: '#20338e',
    950: '#000000',
  },
}
SCSS
$custom: #20338e;
$custom-light: #6e6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#20338e",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 229.636,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36938,
    "c": 0.15177,
    "h": 268.5
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#20338E
secondary
#BBA84F
accent
#CA42E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #20338E

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

Preview Lab → · Contrast checker → · Palette generator →

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