#21428C#21428C

#21428C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.129 H 263.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#21428C
RGBrgb(33, 66, 140)
HSLhsl(221, 62%, 34%)
HSVhsv(221, 76%, 55%)
CMYKcmyk(76.4%, 52.9%, 0%, 45.1%)
CIE-LABlab(29.69, 15.65, -44.66)
CIE-LCHlch(29.69, 47.32, 289.31°)
OKLaboklab(39.94% -0.0145 -0.1285)
OKLCHoklch(39.94% 0.129 263.5)
XYZxyz(7.3074, 6.1124, 25.6006)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21428C #8C6B21
analogous
#21788C #21428C #35218C
triadic
#21428C #8C2142 #428C21
tetradic
#21428C #8C2178 #8C6B21 #218C35
square
#21428C #8C2178 #8C6B21 #218C35
split-complementary
#21428C #8C3521 #788C21
monochromatic
#0A1329 #152B5A #21428C #2D59BE #517AD6

Accessibility & contrast

On white

9.45
#21428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#21428C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21428C
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21428C#FFFFFF#000000##FFFFFF
##21428C1.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)
#124B8F
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21428c;
/* rgb */ color: rgb(33, 66, 140);
/* oklch */ color: oklch(39.9% 0.129 263.5);
Tailwind
colors: {
  custom: {
    50: '#6c75ae',
    500: '#21428c',
    950: '#000000',
  },
}
SCSS
$custom: #21428c;
$custom-light: #6c75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21428c",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 221.495,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39937,
    "c": 0.1293,
    "h": 263.5
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

primary
#21428C
secondary
#B9994F
accent
#B343E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21428C

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

Preview Lab → · Contrast checker → · Palette generator →

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