#21336D#21336D

#21336D is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.103 H 267.7°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#21336D
RGBrgb(33, 51, 109)
HSLhsl(226, 54%, 28%)
HSVhsv(226, 70%, 43%)
CMYKcmyk(69.7%, 53.2%, 0%, 57.3%)
CIE-LABlab(22.98, 13.80, -35.99)
CIE-LCHlch(22.98, 38.54, 290.98°)
OKLaboklab(34.11% -0.0042 -0.1032)
OKLCHoklch(34.11% 0.103 267.7)
XYZxyz(4.5704, 3.7947, 14.9566)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21336D #6D5B21
analogous
#21596D #21336D #35216D
triadic
#21336D #6D2133 #336D21
tetradic
#21336D #6D2159 #6D5B21 #216D35
square
#21336D #6D2159 #6D5B21 #216D35
split-complementary
#21336D #6D3521 #596D21
monochromatic
#070B17 #131D3E #21336D #2F499C #4262C6

Accessibility & contrast

On white

11.94
#21336D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#21336D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21336D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21336D#FFFFFF#000000##FFFFFF
##21336D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123A6F
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21336d;
/* rgb */ color: rgb(33, 51, 109);
/* oklch */ color: oklch(34.1% 0.103 267.7);
Tailwind
colors: {
  custom: {
    50: '#666a97',
    500: '#21336d',
    950: '#000000',
  },
}
SCSS
$custom: #21336d;
$custom-light: #666a97;
$custom-dark: #000000;
JSON
{
  "hex": "#21336d",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 225.789,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.10332,
    "h": 267.7
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#21336D
secondary
#A18C49
accent
#BA4BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #21336D

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

Preview Lab → · Contrast checker → · Palette generator →

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