#21579F#21579F

#21579F is a mid, vivid cyan. Relative luminance 0.096; OKLCH L 46.1% C 0.130 H 256.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#21579F
RGBrgb(33, 87, 159)
HSLhsl(214, 66%, 38%)
HSVhsv(214, 79%, 62%)
CMYKcmyk(79.2%, 45.3%, 0%, 37.6%)
CIE-LABlab(37.19, 9.04, -44.13)
CIE-LCHlch(37.19, 45.04, 281.57°)
OKLaboklab(46.11% -0.0294 -0.1265)
OKLCHoklch(46.11% 0.13 256.9)
XYZxyz(10.2911, 9.6417, 34.1128)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21579F #9F6921
analogous
#21969F #21579F #2A219F
triadic
#21579F #9F2157 #579F21
tetradic
#21579F #9F2196 #9F6921 #219F2A
square
#21579F #9F2196 #9F6921 #219F2A
split-complementary
#21579F #9F2A21 #969F21
monochromatic
#0C203A #163B6C #21579F #2C73D2 #5D94DD

Accessibility & contrast

On white

7.17
#21579F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#21579F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21579F
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21579F#FFFFFF#000000##FFFFFF
##21579F1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325EA2
Deuteranopia (green-blind)
#17529E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #21579f;
/* rgb */ color: rgb(33, 87, 159);
/* oklch */ color: oklch(46.1% 0.130 256.9);
Tailwind
colors: {
  custom: {
    50: '#7085bc',
    500: '#21579f',
    950: '#000000',
  },
}
SCSS
$custom: #21579f;
$custom-light: #7085bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21579f",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 214.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46109,
    "c": 0.12988,
    "h": 256.9
  },
  "luminance": 0.09643
}

Semantic roles & 50–950 ramp

primary
#21579F
secondary
#C2955A
accent
#A03FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #21579F

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

Preview Lab → · Contrast checker → · Palette generator →

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