#20338D#20338D

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

Color values

HEX#20338D
RGBrgb(32, 51, 141)
HSLhsl(230, 63%, 34%)
HSVhsv(230, 77%, 55%)
CMYKcmyk(77.3%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.55, 26.25, -52.01)
CIE-LCHlch(25.55, 58.26, 296.78°)
OKLaboklab(36.84% -0.0039 -0.1503)
OKLCHoklch(36.84% 0.15 268.5)
XYZxyz(6.5855, 4.5971, 25.7344)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20338D #8D7A20
analogous
#206A8D #20338D #44208D
triadic
#20338D #8D2033 #338D20
tetradic
#20338D #8D206A #8D7A20 #208D44
square
#20338D #8D206A #8D7A20 #208D44
split-complementary
#20338D #8D4420 #6A8D20
monochromatic
#090F29 #15215B #20338D #2B45BF #5068D7

Accessibility & contrast

On white

10.94
#20338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#20338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20338D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20338D#FFFFFF#000000##FFFFFF
##20338D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20338d;
/* rgb */ color: rgb(32, 51, 141);
/* oklch */ color: oklch(36.8% 0.150 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d6aaf',
    500: '#20338d',
    950: '#000000',
  },
}
SCSS
$custom: #20338d;
$custom-light: #6d6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#20338d",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 229.541,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36844,
    "c": 0.15039,
    "h": 268.5
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

primary
#20338D
secondary
#BAA84E
accent
#C942E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20338D

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

Preview Lab → · Contrast checker → · Palette generator →

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