#21347D#21347D

#21347D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.7% C 0.126 H 268.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#21347D
RGBrgb(33, 52, 125)
HSLhsl(228, 58%, 31%)
HSVhsv(228, 74%, 49%)
CMYKcmyk(73.6%, 58.4%, 0%, 51%)
CIE-LABlab(24.51, 19.43, -43.70)
CIE-LCHlch(24.51, 47.83, 293.97°)
OKLaboklab(35.65% -0.0038 -0.1259)
OKLCHoklch(35.65% 0.126 268.3)
XYZxyz(5.5556, 4.2594, 19.9274)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21347D #7D6A21
analogous
#21627D #21347D #3C217D
triadic
#21347D #7D2134 #347D21
tetradic
#21347D #7D2162 #7D6A21 #217D3C
square
#21347D #7D2162 #7D6A21 #217D3C
split-complementary
#21347D #7D3C21 #627D21
monochromatic
#070C1C #14204D #21347D #2E48AD #4965CF

Accessibility & contrast

On white

11.34
#21347D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#21347D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21347D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21347D#FFFFFF#000000##FFFFFF
##21347D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21347d;
/* rgb */ color: rgb(33, 52, 125);
/* oklch */ color: oklch(35.7% 0.126 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a6ba3',
    500: '#21347d',
    950: '#000000',
  },
}
SCSS
$custom: #21347d;
$custom-light: #6a6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#21347d",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 125
  },
  "hsl": {
    "h": 227.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.12598,
    "h": 268.3
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#21347D
secondary
#B09B4A
accent
#C146E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21347D

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

Preview Lab → · Contrast checker → · Palette generator →

#21347D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva