#21479C#21479C

#21479C is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.146 H 263.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#21479C
RGBrgb(33, 71, 156)
HSLhsl(221, 65%, 37%)
HSVhsv(221, 79%, 61%)
CMYKcmyk(78.8%, 54.5%, 0%, 38.8%)
CIE-LABlab(32.32, 18.58, -50.17)
CIE-LCHlch(32.32, 53.50, 290.32°)
OKLaboklab(42.31% -0.0168 -0.1446)
OKLCHoklch(42.31% 0.146 263.4)
XYZxyz(8.8790, 7.2291, 32.3734)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21479C #9C7621
analogous
#21859C #21479C #38219C
triadic
#21479C #9C2147 #479C21
tetradic
#21479C #9C2185 #9C7621 #219C38
square
#21479C #9C2185 #9C7621 #219C38
split-complementary
#21479C #9C3821 #859C21
monochromatic
#0C1937 #163069 #21479C #2C5ECF #5B83DC

Accessibility & contrast

On white

8.59
#21479C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#21479C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21479C
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21479C#FFFFFF#000000##FFFFFF
##21479C1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02529F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#005C6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #21479c;
/* rgb */ color: rgb(33, 71, 156);
/* oklch */ color: oklch(42.3% 0.146 263.4);
Tailwind
colors: {
  custom: {
    50: '#7079ba',
    500: '#21479c',
    950: '#000000',
  },
}
SCSS
$custom: #21479c;
$custom-light: #7079ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21479c",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 221.463,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.14559,
    "h": 263.4
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#21479C
secondary
#C1A058
accent
#B440E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21479C

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

Preview Lab → · Contrast checker → · Palette generator →

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