#21457F#21457F

#21457F is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.6% C 0.106 H 259.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#21457F
RGBrgb(33, 69, 127)
HSLhsl(217, 59%, 31%)
HSVhsv(217, 74%, 50%)
CMYKcmyk(74%, 45.7%, 0%, 50.2%)
CIE-LABlab(29.69, 8.41, -36.60)
CIE-LCHlch(29.69, 37.56, 282.94°)
OKLaboklab(39.65% -0.0193 -0.1047)
OKLCHoklch(39.65% 0.107 259.5)
XYZxyz(6.5847, 6.1112, 20.9071)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21457F #7F5B21
analogous
#21747F #21457F #2C217F
triadic
#21457F #7F2145 #457F21
tetradic
#21457F #7F2174 #7F5B21 #217F2C
square
#21457F #7F2174 #7F5B21 #217F2C
split-complementary
#21457F #7F2C21 #747F21
monochromatic
#08101E #142B4E #21457F #2E5FB0 #4A7ED0

Accessibility & contrast

On white

9.45
#21457F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#21457F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21457F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21457F#FFFFFF#000000##FFFFFF
##21457F1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284B81
Deuteranopia (green-blind)
#17427E
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21457f;
/* rgb */ color: rgb(33, 69, 127);
/* oklch */ color: oklch(39.6% 0.106 259.5);
Tailwind
colors: {
  custom: {
    50: '#6978a4',
    500: '#21457f',
    950: '#000000',
  },
}
SCSS
$custom: #21457f;
$custom-light: #6978a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21457f",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 127
  },
  "hsl": {
    "h": 217.021,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39646,
    "c": 0.1065,
    "h": 259.5
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#21457F
secondary
#B28A4A
accent
#A646E2
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21457F

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

Preview Lab → · Contrast checker → · Palette generator →

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