#21338D#21338D

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

Color values

HEX#21338D
RGBrgb(33, 51, 141)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 77%, 55%)
CMYKcmyk(76.6%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.60, 26.36, -51.93)
CIE-LCHlch(25.60, 58.24, 296.92°)
OKLaboklab(36.89% -0.0029 -0.1501)
OKLCHoklch(36.89% 0.15 268.9)
XYZxyz(6.6171, 4.6134, 25.7359)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21338D #8D7B21
analogous
#21698D #21338D #45218D
triadic
#21338D #8D2133 #338D21
tetradic
#21338D #8D2169 #8D7B21 #218D45
square
#21338D #8D2169 #8D7B21 #218D45
split-complementary
#21338D #8D4521 #698D21
monochromatic
#0A0F2A #15215B #21338D #2D45BF #5268D6

Accessibility & contrast

On white

10.92
#21338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21338D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21338D#FFFFFF#000000##FFFFFF
##21338D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.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: #21338d;
/* rgb */ color: rgb(33, 51, 141);
/* oklch */ color: oklch(36.9% 0.150 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e6aaf',
    500: '#21338d',
    950: '#000000',
  },
}
SCSS
$custom: #21338d;
$custom-light: #6e6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#21338d",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 230,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36893,
    "c": 0.15011,
    "h": 268.9
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#21338D
secondary
#BAA850
accent
#CA43E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21338D

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

Preview Lab → · Contrast checker → · Palette generator →

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