#21345B#21345B

#21345B is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.0% C 0.074 H 263.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#21345B
RGBrgb(33, 52, 91)
HSLhsl(220, 47%, 24%)
HSVhsv(220, 64%, 36%)
CMYKcmyk(63.7%, 42.9%, 0%, 64.3%)
CIE-LABlab(22.07, 6.02, -25.73)
CIE-LCHlch(22.07, 26.43, 283.17°)
OKLaboklab(33.01% -0.0086 -0.0731)
OKLCHoklch(33.01% 0.074 263.3)
XYZxyz(3.7429, 3.5343, 10.3805)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21345B #5B4821
analogous
#21515B #21345B #2B215B
triadic
#21345B #5B2134 #345B21
tetradic
#21345B #5B2151 #5B4821 #215B2B
square
#21345B #5B2151 #5B4821 #215B2B
split-complementary
#21345B #5B2B21 #515B21
monochromatic
#080D16 #111A2E #21345B #314E88 #4267B5

Accessibility & contrast

On white

12.30
#21345B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#21345B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21345B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21345B#FFFFFF#000000##FFFFFF
##21345B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23385D
Deuteranopia (green-blind)
#1C325A
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21345b;
/* rgb */ color: rgb(33, 52, 91);
/* oklch */ color: oklch(33.0% 0.074 263.3);
Tailwind
colors: {
  custom: {
    50: '#626b89',
    500: '#21345b',
    950: '#000000',
  },
}
SCSS
$custom: #21345b;
$custom-light: #626b89;
$custom-dark: #000000;
JSON
{
  "hex": "#21345b",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 91
  },
  "hsl": {
    "h": 220.345,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33013,
    "c": 0.07359,
    "h": 263.3
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#21345B
secondary
#8F7849
accent
#AB51D6
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060B
muted
#7A7A7C

Preview Lab

Preview with #21345B

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

Preview Lab → · Contrast checker → · Palette generator →

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