#21345E#21345E

#21345E is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.2% C 0.078 H 264.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#21345E
RGBrgb(33, 52, 94)
HSLhsl(221, 48%, 25%)
HSVhsv(221, 65%, 37%)
CMYKcmyk(64.9%, 44.7%, 0%, 63.1%)
CIE-LABlab(22.26, 7.19, -27.40)
CIE-LCHlch(22.26, 28.33, 284.70°)
OKLaboklab(33.22% -0.0079 -0.078)
OKLCHoklch(33.22% 0.078 264.2)
XYZxyz(3.8749, 3.5871, 11.0757)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21345E #5E4B21
analogous
#21535E #21345E #2C215E
triadic
#21345E #5E2134 #345E21
tetradic
#21345E #5E2153 #5E4B21 #215E2C
square
#21345E #5E2153 #5E4B21 #215E2C
split-complementary
#21345E #5E2C21 #535E21
monochromatic
#080D17 #111B31 #21345E #314D8B #4166B9

Accessibility & contrast

On white

12.23
#21345E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#21345E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21345E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21345E#FFFFFF#000000##FFFFFF
##21345E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213860
Deuteranopia (green-blind)
#19335D
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21345e;
/* rgb */ color: rgb(33, 52, 94);
/* oklch */ color: oklch(33.2% 0.078 264.2);
Tailwind
colors: {
  custom: {
    50: '#636b8c',
    500: '#21345e',
    950: '#000000',
  },
}
SCSS
$custom: #21345e;
$custom-light: #636b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#21345e",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 94
  },
  "hsl": {
    "h": 221.311,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.07838,
    "h": 264.2
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#21345E
secondary
#927B49
accent
#AD50D8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #21345E

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

Preview Lab → · Contrast checker → · Palette generator →

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