#21399C#21399C

#21399C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.163 H 267.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#21399C
RGBrgb(33, 57, 156)
HSLhsl(228, 65%, 37%)
HSVhsv(228, 79%, 61%)
CMYKcmyk(78.8%, 63.5%, 0%, 38.8%)
CIE-LABlab(28.51, 28.08, -56.38)
CIE-LCHlch(28.51, 62.99, 296.48°)
OKLaboklab(39.45% -0.0071 -0.1631)
OKLCHoklch(39.45% 0.163 267.5)
XYZxyz(8.0890, 5.6490, 32.1101)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21399C #9C8421
analogous
#21769C #21399C #47219C
triadic
#21399C #9C2139 #399C21
tetradic
#21399C #9C2176 #9C8421 #219C47
square
#21399C #9C2176 #9C8421 #219C47
split-complementary
#21399C #9C4721 #769C21
monochromatic
#0C1437 #162769 #21399C #2C4BCF #5B74DC

Accessibility & contrast

On white

9.86
#21399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#21399C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21399C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21399C#FFFFFF#000000##FFFFFF
##21399C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21399c;
/* rgb */ color: rgb(33, 57, 156);
/* oklch */ color: oklch(39.5% 0.163 267.5);
Tailwind
colors: {
  custom: {
    50: '#716fba',
    500: '#21399c',
    950: '#000000',
  },
}
SCSS
$custom: #21399c;
$custom-light: #716fba;
$custom-dark: #000000;
JSON
{
  "hex": "#21399c",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 228.293,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39454,
    "c": 0.16323,
    "h": 267.5
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#21399C
secondary
#C1AC58
accent
#C740E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21399C

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

Preview Lab → · Contrast checker → · Palette generator →

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