#21347C#21347C

#21347C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.125 H 268.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#21347C
RGBrgb(33, 52, 124)
HSLhsl(227, 58%, 31%)
HSVhsv(227, 73%, 49%)
CMYKcmyk(73.4%, 58.1%, 0%, 51.4%)
CIE-LABlab(24.43, 19.03, -43.20)
CIE-LCHlch(24.43, 47.21, 293.77°)
OKLaboklab(35.57% -0.0039 -0.1244)
OKLCHoklch(35.57% 0.125 268.2)
XYZxyz(5.4920, 4.2340, 19.5927)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21347C #7C6921
analogous
#21617C #21347C #3C217C
triadic
#21347C #7C2134 #347C21
tetradic
#21347C #7C2161 #7C6921 #217C3C
square
#21347C #7C2161 #7C6921 #217C3C
split-complementary
#21347C #7C3C21 #617C21
monochromatic
#070B1B #14204C #21347C #2E48AC #4965CF

Accessibility & contrast

On white

11.37
#21347C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21347C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21347C#FFFFFF#000000##FFFFFF
##21347C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004652
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21347c;
/* rgb */ color: rgb(33, 52, 124);
/* oklch */ color: oklch(35.6% 0.125 268.2);
Tailwind
colors: {
  custom: {
    50: '#696ba2',
    500: '#21347c',
    950: '#000000',
  },
}
SCSS
$custom: #21347c;
$custom-light: #696ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#21347c",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 124
  },
  "hsl": {
    "h": 227.473,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.12451,
    "h": 268.2
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#21347C
secondary
#AF9A4A
accent
#C147E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21347C

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

Preview Lab → · Contrast checker → · Palette generator →

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