#20338F#20338F

#20338F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.153 H 268.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#20338F
RGBrgb(32, 51, 143)
HSLhsl(230, 63%, 34%)
HSVhsv(230, 78%, 56%)
CMYKcmyk(77.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.73, 27.02, -52.95)
CIE-LCHlch(25.73, 59.45, 297.03°)
OKLaboklab(37.03% -0.0039 -0.1531)
OKLCHoklch(37.03% 0.153 268.5)
XYZxyz(6.7357, 4.6572, 26.5252)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20338F #8F7C20
analogous
#206B8F #20338F #45208F
triadic
#20338F #8F2033 #338F20
tetradic
#20338F #8F206B #8F7C20 #208F45
square
#20338F #8F206B #8F7C20 #208F45
split-complementary
#20338F #8F4520 #6B8F20
monochromatic
#0A0F2B #15215D #20338F #2B45C1 #5168D8

Accessibility & contrast

On white

10.87
#20338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20338F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20338F#FFFFFF#000000##FFFFFF
##20338F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20338f;
/* rgb */ color: rgb(32, 51, 143);
/* oklch */ color: oklch(37.0% 0.153 268.5);
Tailwind
colors: {
  custom: {
    50: '#6e6ab1',
    500: '#20338f',
    950: '#000000',
  },
}
SCSS
$custom: #20338f;
$custom-light: #6e6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#20338f",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 229.73,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37032,
    "c": 0.15315,
    "h": 268.5
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#20338F
secondary
#BBA94F
accent
#CA41E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #20338F

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

Preview Lab → · Contrast checker → · Palette generator →

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