#21347E#21347E

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

Color values

HEX#21347E
RGBrgb(33, 52, 126)
HSLhsl(228, 58%, 31%)
HSVhsv(228, 74%, 49%)
CMYKcmyk(73.8%, 58.7%, 0%, 50.6%)
CIE-LABlab(24.59, 19.82, -44.20)
CIE-LCHlch(24.59, 48.44, 294.15°)
OKLaboklab(35.74% -0.0038 -0.1274)
OKLCHoklch(35.74% 0.127 268.3)
XYZxyz(5.6198, 4.2851, 20.2656)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21347E #7E6B21
analogous
#21627E #21347E #3C217E
triadic
#21347E #7E2134 #347E21
tetradic
#21347E #7E2162 #7E6B21 #217E3C
square
#21347E #7E2162 #7E6B21 #217E3C
split-complementary
#21347E #7E3C21 #627E21
monochromatic
#080C1D #14204E #21347E #2E48AE #4A65D0

Accessibility & contrast

On white

11.31
#21347E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#21347E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21347E
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21347E#FFFFFF#000000##FFFFFF
##21347E1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21347e;
/* rgb */ color: rgb(33, 52, 126);
/* oklch */ color: oklch(35.7% 0.127 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a6ba4',
    500: '#21347e',
    950: '#000000',
  },
}
SCSS
$custom: #21347e;
$custom-light: #6a6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#21347e",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 126
  },
  "hsl": {
    "h": 227.742,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.12745,
    "h": 268.3
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#21347E
secondary
#B19C4A
accent
#C246E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21347E

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

Preview Lab → · Contrast checker → · Palette generator →

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