#20338B#20338B

#20338B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.148 H 268.5°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#20338B
RGBrgb(32, 51, 139)
HSLhsl(229, 63%, 34%)
HSVhsv(229, 77%, 55%)
CMYKcmyk(77%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.38, 25.47, -51.06)
CIE-LCHlch(25.38, 57.06, 296.51°)
OKLaboklab(36.66% -0.0038 -0.1476)
OKLCHoklch(36.66% 0.148 268.5)
XYZxyz(6.4381, 4.5381, 24.9577)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20338B #8B7820
analogous
#20688B #20338B #42208B
triadic
#20338B #8B2033 #338B20
tetradic
#20338B #8B2068 #8B7820 #208B42
square
#20338B #8B2068 #8B7820 #208B42
split-complementary
#20338B #8B4220 #688B20
monochromatic
#090E28 #152159 #20338B #2B45BD #4F67D6

Accessibility & contrast

On white

11.01
#20338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#20338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20338B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20338B#FFFFFF#000000##FFFFFF
##20338B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #20338b;
/* rgb */ color: rgb(32, 51, 139);
/* oklch */ color: oklch(36.7% 0.148 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d6aae',
    500: '#20338b',
    950: '#000000',
  },
}
SCSS
$custom: #20338b;
$custom-light: #6d6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#20338b",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 229.346,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36656,
    "c": 0.14761,
    "h": 268.5
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#20338B
secondary
#BAA64D
accent
#C942E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20338B

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

Preview Lab → · Contrast checker → · Palette generator →

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