#21538B#21538B

#21538B is a dark, moderate cyan. Relative luminance 0.084; OKLCH L 43.8% C 0.107 H 253.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#21538B
RGBrgb(33, 83, 139)
HSLhsl(212, 62%, 34%)
HSVhsv(212, 76%, 55%)
CMYKcmyk(76.3%, 40.3%, 0%, 45.5%)
CIE-LABlab(34.75, 3.79, -35.94)
CIE-LCHlch(34.75, 36.14, 276.02°)
OKLaboklab(43.81% -0.0302 -0.1025)
OKLCHoklch(43.81% 0.107 253.6)
XYZxyz(8.3789, 8.3730, 25.5956)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21538B #8B5921
analogous
#21888B #21538B #24218B
triadic
#21538B #8B2153 #538B21
tetradic
#21538B #8B2188 #8B5921 #218B24
square
#21538B #8B2188 #8B5921 #218B24
split-complementary
#21538B #8B2421 #888B21
monochromatic
#0A1828 #15355A #21538B #2D71BC #518FD6

Accessibility & contrast

On white

7.85
#21538B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#21538B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21538B
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21538B#FFFFFF#000000##FFFFFF
##21538B1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578D
Deuteranopia (green-blind)
#284D8A
Tritanopia (blue-blind)
#006068
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #21538b;
/* rgb */ color: rgb(33, 83, 139);
/* oklch */ color: oklch(43.8% 0.107 253.6);
Tailwind
colors: {
  custom: {
    50: '#6c82ad',
    500: '#21538b',
    950: '#000000',
  },
}
SCSS
$custom: #21538b;
$custom-light: #6c82ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21538b",
  "rgb": {
    "r": 33,
    "g": 83,
    "b": 139
  },
  "hsl": {
    "h": 211.698,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43812,
    "c": 0.10689,
    "h": 253.6
  },
  "luminance": 0.08374
}

Semantic roles & 50–950 ramp

primary
#21538B
secondary
#B9874F
accent
#9843E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #21538B

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

Preview Lab → · Contrast checker → · Palette generator →

#21538B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva