#21335C#21335C

#21335C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.8% C 0.077 H 264.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#21335C
RGBrgb(33, 51, 92)
HSLhsl(222, 47%, 25%)
HSVhsv(222, 64%, 36%)
CMYKcmyk(64.1%, 44.6%, 0%, 63.9%)
CIE-LABlab(21.81, 7.12, -26.80)
CIE-LCHlch(21.81, 27.73, 284.87°)
OKLaboklab(32.84% -0.0071 -0.0762)
OKLCHoklch(32.84% 0.077 264.7)
XYZxyz(3.7421, 3.4634, 10.5944)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21335C #5C4A21
analogous
#21515C #21335C #2D215C
triadic
#21335C #5C2133 #335C21
tetradic
#21335C #5C2151 #5C4A21 #215C2D
square
#21335C #5C2151 #5C4A21 #215C2D
split-complementary
#21335C #5C2D21 #515C21
monochromatic
#080C17 #111A2F #21335C #314C89 #4165B6

Accessibility & contrast

On white

12.41
#21335C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#21335C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21335C
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21335C#FFFFFF#000000##FFFFFF
##21335C1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21375E
Deuteranopia (green-blind)
#19325B
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21335c;
/* rgb */ color: rgb(33, 51, 92);
/* oklch */ color: oklch(32.8% 0.077 264.7);
Tailwind
colors: {
  custom: {
    50: '#626a8a',
    500: '#21335c',
    950: '#000000',
  },
}
SCSS
$custom: #21335c;
$custom-light: #626a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#21335c",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 221.695,
    "s": 47.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32836,
    "c": 0.07655,
    "h": 264.7
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#21335C
secondary
#907A49
accent
#AE51D7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #21335C

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

Preview Lab → · Contrast checker → · Palette generator →

#21335C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva