#21379C#21379C

#21379C is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.166 H 268.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#21379C
RGBrgb(33, 55, 156)
HSLhsl(229, 65%, 37%)
HSVhsv(229, 79%, 61%)
CMYKcmyk(78.8%, 64.7%, 0%, 38.8%)
CIE-LABlab(27.99, 29.42, -57.23)
CIE-LCHlch(27.99, 64.35, 297.21°)
OKLaboklab(39.07% -0.0059 -0.1656)
OKLCHoklch(39.07% 0.166 268)
XYZxyz(7.9921, 5.4551, 32.0778)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21379C #9C8621
analogous
#21759C #21379C #48219C
triadic
#21379C #9C2137 #379C21
tetradic
#21379C #9C2175 #9C8621 #219C48
square
#21379C #9C2175 #9C8621 #219C48
split-complementary
#21379C #9C4821 #759C21
monochromatic
#0C1337 #162569 #21379C #2C49CF #5B72DC

Accessibility & contrast

On white

10.04
#21379C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#21379C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21379C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21379C#FFFFFF#000000##FFFFFF
##21379C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21379c;
/* rgb */ color: rgb(33, 55, 156);
/* oklch */ color: oklch(39.1% 0.166 268.0);
Tailwind
colors: {
  custom: {
    50: '#716dba',
    500: '#21379c',
    950: '#000000',
  },
}
SCSS
$custom: #21379c;
$custom-light: #716dba;
$custom-dark: #000000;
JSON
{
  "hex": "#21379c",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 156
  },
  "hsl": {
    "h": 229.268,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39074,
    "c": 0.16567,
    "h": 268
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#21379C
secondary
#C1AE58
accent
#CA40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21379C

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

Preview Lab → · Contrast checker → · Palette generator →

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