#21347F#21347F

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

Color values

HEX#21347F
RGBrgb(33, 52, 127)
HSLhsl(228, 59%, 31%)
HSVhsv(228, 74%, 50%)
CMYKcmyk(74%, 59.1%, 0%, 50.2%)
CIE-LABlab(24.67, 20.22, -44.70)
CIE-LCHlch(24.67, 49.06, 294.33°)
OKLaboklab(35.83% -0.0038 -0.1288)
OKLCHoklch(35.83% 0.129 268.3)
XYZxyz(5.6846, 4.3110, 20.6071)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21347F #7F6C21
analogous
#21637F #21347F #3D217F
triadic
#21347F #7F2134 #347F21
tetradic
#21347F #7F2163 #7F6C21 #217F3D
square
#21347F #7F2163 #7F6C21 #217F3D
split-complementary
#21347F #7F3D21 #637F21
monochromatic
#080C1E #14204E #21347F #2E48B0 #4A65D0

Accessibility & contrast

On white

11.28
#21347F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21347F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21347F#FFFFFF#000000##FFFFFF
##21347F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21347f;
/* rgb */ color: rgb(33, 52, 127);
/* oklch */ color: oklch(35.8% 0.129 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a6ba5',
    500: '#21347f',
    950: '#000000',
  },
}
SCSS
$custom: #21347f;
$custom-light: #6a6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#21347f",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 127
  },
  "hsl": {
    "h": 227.872,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.1289,
    "h": 268.3
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21347F

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

Preview Lab → · Contrast checker → · Palette generator →

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