#21345F#21345F

#21345F is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.3% C 0.080 H 264.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#21345F
RGBrgb(33, 52, 95)
HSLhsl(222, 48%, 25%)
HSVhsv(222, 65%, 37%)
CMYKcmyk(65.3%, 45.3%, 0%, 62.7%)
CIE-LABlab(22.32, 7.57, -27.95)
CIE-LCHlch(22.32, 28.96, 285.16°)
OKLaboklab(33.29% -0.0076 -0.0796)
OKLCHoklch(33.29% 0.08 264.5)
XYZxyz(3.9200, 3.6052, 11.3135)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21345F #5F4C21
analogous
#21535F #21345F #2D215F
triadic
#21345F #5F2134 #345F21
tetradic
#21345F #5F2153 #5F4C21 #215F2D
square
#21345F #5F2153 #5F4C21 #215F2D
split-complementary
#21345F #5F2D21 #535F21
monochromatic
#080C17 #111B32 #21345F #314D8C #4166BA

Accessibility & contrast

On white

12.20
#21345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21345F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21345F#FFFFFF#000000##FFFFFF
##21345F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213861
Deuteranopia (green-blind)
#18335E
Tritanopia (blue-blind)
#003E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21345f;
/* rgb */ color: rgb(33, 52, 95);
/* oklch */ color: oklch(33.3% 0.080 264.5);
Tailwind
colors: {
  custom: {
    50: '#636b8d',
    500: '#21345f',
    950: '#000000',
  },
}
SCSS
$custom: #21345f;
$custom-light: #636b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#21345f",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 221.613,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.07997,
    "h": 264.5
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#21345F
secondary
#937C49
accent
#AE50D8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #21345F

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

Preview Lab → · Contrast checker → · Palette generator →

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