#21338E#21338E

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

Color values

HEX#21338E
RGBrgb(33, 51, 142)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 77%, 56%)
CMYKcmyk(76.8%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.69, 26.75, -52.40)
CIE-LCHlch(25.69, 58.83, 297.04°)
OKLaboklab(36.99% -0.0029 -0.1515)
OKLCHoklch(36.99% 0.151 268.9)
XYZxyz(6.6918, 4.6433, 26.1295)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21338E #8E7C21
analogous
#216A8E #21338E #46218E
triadic
#21338E #8E2133 #338E21
tetradic
#21338E #8E216A #8E7C21 #218E46
square
#21338E #8E216A #8E7C21 #218E46
split-complementary
#21338E #8E4621 #6A8E21
monochromatic
#0A0F2B #15215C #21338E #2D45C0 #5268D7

Accessibility & contrast

On white

10.89
#21338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#21338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21338E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21338E#FFFFFF#000000##FFFFFF
##21338E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21338e;
/* rgb */ color: rgb(33, 51, 142);
/* oklch */ color: oklch(37.0% 0.151 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e6ab0',
    500: '#21338e',
    950: '#000000',
  },
}
SCSS
$custom: #21338e;
$custom-light: #6e6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#21338e",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 230.092,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36987,
    "c": 0.15149,
    "h": 268.9
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#21338E
secondary
#BAA950
accent
#CA42E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21338E

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

Preview Lab → · Contrast checker → · Palette generator →

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