#21336E#21336E

#21336E is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.105 H 267.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#21336E
RGBrgb(33, 51, 110)
HSLhsl(226, 54%, 28%)
HSVhsv(226, 70%, 43%)
CMYKcmyk(70%, 53.6%, 0%, 56.9%)
CIE-LABlab(23.05, 14.20, -36.51)
CIE-LCHlch(23.05, 39.17, 291.25°)
OKLaboklab(34.19% -0.0041 -0.1048)
OKLCHoklch(34.19% 0.105 267.8)
XYZxyz(4.6245, 3.8163, 15.2417)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21336E #6E5C21
analogous
#21596E #21336E #35216E
triadic
#21336E #6E2133 #336E21
tetradic
#21336E #6E2159 #6E5C21 #216E35
square
#21336E #6E2159 #6E5C21 #216E35
split-complementary
#21336E #6E3521 #596E21
monochromatic
#070B18 #131D3F #21336E #2F499D #4362C7

Accessibility & contrast

On white

11.91
#21336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21336E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21336E#FFFFFF#000000##FFFFFF
##21336E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103B70
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21336e;
/* rgb */ color: rgb(33, 51, 110);
/* oklch */ color: oklch(34.2% 0.105 267.8);
Tailwind
colors: {
  custom: {
    50: '#666a98',
    500: '#21336e',
    950: '#000000',
  },
}
SCSS
$custom: #21336e;
$custom-light: #666a98;
$custom-dark: #000000;
JSON
{
  "hex": "#21336e",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 225.974,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.10485,
    "h": 267.8
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#21336E
secondary
#A28D49
accent
#BB4BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #21336E

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

Preview Lab → · Contrast checker → · Palette generator →

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