#21379F#21379F

#21379F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.170 H 268.0°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#21379F
RGBrgb(33, 55, 159)
HSLhsl(230, 66%, 38%)
HSVhsv(230, 79%, 62%)
CMYKcmyk(79.2%, 65.4%, 0%, 37.6%)
CIE-LABlab(28.27, 30.56, -58.60)
CIE-LCHlch(28.27, 66.09, 297.54°)
OKLaboklab(39.36% -0.006 -0.1696)
OKLCHoklch(39.36% 0.17 268)
XYZxyz(8.2492, 5.5580, 33.4322)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21379F #9F8921
analogous
#21769F #21379F #4A219F
triadic
#21379F #9F2137 #379F21
tetradic
#21379F #9F2176 #9F8921 #219F4A
square
#21379F #9F2176 #9F8921 #219F4A
split-complementary
#21379F #9F4A21 #769F21
monochromatic
#0C143A #16256C #21379F #2C49D2 #5D73DD

Accessibility & contrast

On white

9.94
#21379F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#21379F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21379F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21379F#FFFFFF#000000##FFFFFF
##21379F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21379f;
/* rgb */ color: rgb(33, 55, 159);
/* oklch */ color: oklch(39.4% 0.170 268.0);
Tailwind
colors: {
  custom: {
    50: '#726dbc',
    500: '#21379f',
    950: '#000000',
  },
}
SCSS
$custom: #21379f;
$custom-light: #726dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#21379f",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 159
  },
  "hsl": {
    "h": 229.524,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3936,
    "c": 0.16969,
    "h": 268
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#21379F
secondary
#C2B05A
accent
#CB3FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21379F

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

Preview Lab → · Contrast checker → · Palette generator →

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