#21345C#21345C

#21345C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.1% C 0.075 H 263.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#21345C
RGBrgb(33, 52, 92)
HSLhsl(221, 47%, 25%)
HSVhsv(221, 64%, 36%)
CMYKcmyk(64.1%, 43.5%, 0%, 63.9%)
CIE-LABlab(22.13, 6.41, -26.29)
CIE-LCHlch(22.13, 27.06, 283.70°)
OKLaboklab(33.08% -0.0083 -0.0747)
OKLCHoklch(33.08% 0.075 263.6)
XYZxyz(3.7863, 3.5517, 10.6092)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21345C #5C4921
analogous
#21525C #21345C #2C215C
triadic
#21345C #5C2134 #345C21
tetradic
#21345C #5C2152 #5C4921 #215C2C
square
#21345C #5C2152 #5C4921 #215C2C
split-complementary
#21345C #5C2C21 #525C21
monochromatic
#080D17 #111B2F #21345C #314D89 #4167B6

Accessibility & contrast

On white

12.28
#21345C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21345C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21345C#FFFFFF#000000##FFFFFF
##21345C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21345c;
/* rgb */ color: rgb(33, 52, 92);
/* oklch */ color: oklch(33.1% 0.075 263.6);
Tailwind
colors: {
  custom: {
    50: '#626b8a',
    500: '#21345c',
    950: '#000000',
  },
}
SCSS
$custom: #21345c;
$custom-light: #626b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#21345c",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 92
  },
  "hsl": {
    "h": 220.678,
    "s": 47.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33082,
    "c": 0.07518,
    "h": 263.6
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#21345C
secondary
#907949
accent
#AC51D7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #21345C

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

Preview Lab → · Contrast checker → · Palette generator →

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