#21479F#21479F

#21479F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.150 H 263.6°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#21479F
RGBrgb(33, 71, 159)
HSLhsl(222, 66%, 38%)
HSVhsv(222, 79%, 62%)
CMYKcmyk(79.2%, 55.3%, 0%, 37.6%)
CIE-LABlab(32.55, 19.77, -51.61)
CIE-LCHlch(32.55, 55.27, 290.96°)
OKLaboklab(42.56% -0.0166 -0.1489)
OKLCHoklch(42.56% 0.15 263.6)
XYZxyz(9.1362, 7.3320, 33.7279)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21479F #9F7921
analogous
#21869F #21479F #3A219F
triadic
#21479F #9F2147 #479F21
tetradic
#21479F #9F2186 #9F7921 #219F3A
square
#21479F #9F2186 #9F7921 #219F3A
split-complementary
#21479F #9F3A21 #869F21
monochromatic
#0C1A3A #16306C #21479F #2C5ED2 #5D84DD

Accessibility & contrast

On white

8.51
#21479F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#21479F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21479F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21479F#FFFFFF#000000##FFFFFF
##21479F1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #21479f;
/* rgb */ color: rgb(33, 71, 159);
/* oklch */ color: oklch(42.6% 0.150 263.6);
Tailwind
colors: {
  custom: {
    50: '#7179bc',
    500: '#21479f',
    950: '#000000',
  },
}
SCSS
$custom: #21479f;
$custom-light: #7179bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21479f",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 221.905,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42556,
    "c": 0.14978,
    "h": 263.6
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

primary
#21479F
secondary
#C2A35A
accent
#B63FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21479F

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

Preview Lab → · Contrast checker → · Palette generator →

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