#20338A#20338A

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

Color values

HEX#20338A
RGBrgb(32, 51, 138)
HSLhsl(229, 62%, 33%)
HSVhsv(229, 77%, 54%)
CMYKcmyk(76.8%, 63%, 0%, 45.9%)
CIE-LABlab(25.29, 25.08, -50.58)
CIE-LCHlch(25.29, 56.46, 296.38°)
OKLaboklab(36.56% -0.0038 -0.1462)
OKLCHoklch(36.56% 0.146 268.5)
XYZxyz(6.3653, 4.5090, 24.5747)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20338A #8A7720
analogous
#20688A #20338A #42208A
triadic
#20338A #8A2033 #338A20
tetradic
#20338A #8A2068 #8A7720 #208A42
square
#20338A #8A2068 #8A7720 #208A42
split-complementary
#20338A #8A4220 #688A20
monochromatic
#090E27 #142158 #20338A #2C45BC #4E67D6

Accessibility & contrast

On white

11.04
#20338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#20338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20338A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20338A#FFFFFF#000000##FFFFFF
##20338A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #20338a;
/* rgb */ color: rgb(32, 51, 138);
/* oklch */ color: oklch(36.6% 0.146 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d6aad',
    500: '#20338a',
    950: '#000000',
  },
}
SCSS
$custom: #20338a;
$custom-light: #6d6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#20338a",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 229.245,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36563,
    "c": 0.14621,
    "h": 268.5
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#20338A
secondary
#B9A64D
accent
#C842E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20338A

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

Preview Lab → · Contrast checker → · Palette generator →

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