#21337A#21337A

#21337A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.123 H 268.5°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#21337A
RGBrgb(33, 51, 122)
HSLhsl(228, 57%, 30%)
HSVhsv(228, 73%, 48%)
CMYKcmyk(73%, 58.2%, 0%, 52.2%)
CIE-LABlab(23.98, 18.94, -42.66)
CIE-LCHlch(23.98, 46.68, 293.94°)
OKLaboklab(35.18% -0.0031 -0.1229)
OKLCHoklch(35.18% 0.123 268.5)
XYZxyz(5.3227, 4.0956, 18.9186)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21337A #7A6821
analogous
#215F7A #21337A #3B217A
triadic
#21337A #7A2133 #337A21
tetradic
#21337A #7A215F #7A6821 #217A3B
square
#21337A #7A215F #7A6821 #217A3B
split-complementary
#21337A #7A3B21 #5F7A21
monochromatic
#070B1A #141F4A #21337A #2E47AA #4863CD

Accessibility & contrast

On white

11.54
#21337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#21337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21337A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21337A#FFFFFF#000000##FFFFFF
##21337A1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21337a;
/* rgb */ color: rgb(33, 51, 122);
/* oklch */ color: oklch(35.2% 0.123 268.5);
Tailwind
colors: {
  custom: {
    50: '#696aa1',
    500: '#21337a',
    950: '#000000',
  },
}
SCSS
$custom: #21337a;
$custom-light: #696aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#21337a",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 227.865,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35183,
    "c": 0.12291,
    "h": 268.5
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#21337A
secondary
#AD994A
accent
#C247E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21337A

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

Preview Lab → · Contrast checker → · Palette generator →

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