#21336B#21336B

#21336B is a dark, moderate blue. Relative luminance 0.038; OKLCH L 33.9% C 0.100 H 267.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#21336B
RGBrgb(33, 51, 107)
HSLhsl(225, 53%, 27%)
HSVhsv(225, 69%, 42%)
CMYKcmyk(69.2%, 52.3%, 0%, 58%)
CIE-LABlab(22.83, 13.01, -34.93)
CIE-LCHlch(22.83, 37.28, 290.43°)
OKLaboklab(33.95% -0.0044 -0.1001)
OKLCHoklch(33.95% 0.1 267.5)
XYZxyz(4.4640, 3.7521, 14.3960)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21336B #6B5921
analogous
#21586B #21336B #34216B
triadic
#21336B #6B2133 #336B21
tetradic
#21336B #6B2158 #6B5921 #216B34
square
#21336B #6B2158 #6B5921 #216B34
split-complementary
#21336B #6B3421 #586B21
monochromatic
#070B17 #131D3C #21336B #2F499A #4262C5

Accessibility & contrast

On white

12.00
#21336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21336B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21336B#FFFFFF#000000##FFFFFF
##21336B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143A6D
Deuteranopia (green-blind)
#02336A
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21336b;
/* rgb */ color: rgb(33, 51, 107);
/* oklch */ color: oklch(33.9% 0.100 267.5);
Tailwind
colors: {
  custom: {
    50: '#656a96',
    500: '#21336b',
    950: '#000000',
  },
}
SCSS
$custom: #21336b;
$custom-light: #656a96;
$custom-dark: #000000;
JSON
{
  "hex": "#21336b",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 225.405,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33949,
    "c": 0.10023,
    "h": 267.5
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#21336B
secondary
#9F8A49
accent
#B94CDC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #21336B

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

Preview Lab → · Contrast checker → · Palette generator →

#21336B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva