#21339E#21339E

#21339E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.173 H 268.8°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#21339E
RGBrgb(33, 51, 158)
HSLhsl(231, 65%, 37%)
HSVhsv(231, 79%, 62%)
CMYKcmyk(79.1%, 67.7%, 0%, 38%)
CIE-LABlab(27.18, 32.81, -59.78)
CIE-LCHlch(27.18, 68.19, 298.76°)
OKLaboklab(38.54% -0.0037 -0.173)
OKLCHoklch(38.54% 0.173 268.8)
XYZxyz(7.9805, 5.1587, 32.9163)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21339E #9E8C21
analogous
#21729E #21339E #4E219E
triadic
#21339E #9E2133 #339E21
tetradic
#21339E #9E2172 #9E8C21 #219E4E
square
#21339E #9E2172 #9E8C21 #219E4E
split-complementary
#21339E #9E4E21 #729E21
monochromatic
#0C1239 #16236B #21339E #2C43D1 #5C6FDD

Accessibility & contrast

On white

10.33
#21339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#21339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21339E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21339E#FFFFFF#000000##FFFFFF
##21339E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21339e;
/* rgb */ color: rgb(33, 51, 158);
/* oklch */ color: oklch(38.5% 0.173 268.8);
Tailwind
colors: {
  custom: {
    50: '#726bbc',
    500: '#21339e',
    950: '#000000',
  },
}
SCSS
$custom: #21339e;
$custom-light: #726bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#21339e",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 231.36,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38536,
    "c": 0.17309,
    "h": 268.8
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#21339E
secondary
#C1B259
accent
#D03FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21339E

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

Preview Lab → · Contrast checker → · Palette generator →

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