#21399A#21399A

#21399A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.161 H 267.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#21399A
RGBrgb(33, 57, 154)
HSLhsl(228, 65%, 37%)
HSVhsv(228, 79%, 60%)
CMYKcmyk(78.6%, 63%, 0%, 39.6%)
CIE-LABlab(28.33, 27.31, -55.46)
CIE-LCHlch(28.33, 61.82, 296.22°)
OKLaboklab(39.27% -0.0071 -0.1603)
OKLCHoklch(39.27% 0.161 267.5)
XYZxyz(7.9210, 5.5818, 31.2255)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21399A #9A8221
analogous
#21769A #21399A #46219A
triadic
#21399A #9A2139 #399A21
tetradic
#21399A #9A2176 #9A8221 #219A46
square
#21399A #9A2176 #9A8221 #219A46
split-complementary
#21399A #9A4621 #769A21
monochromatic
#0B1435 #162668 #21399A #2C4CCC #5A74DC

Accessibility & contrast

On white

9.92
#21399A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#21399A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21399A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21399A#FFFFFF#000000##FFFFFF
##21399A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21399a;
/* rgb */ color: rgb(33, 57, 154);
/* oklch */ color: oklch(39.3% 0.161 267.5);
Tailwind
colors: {
  custom: {
    50: '#716fb9',
    500: '#21399a',
    950: '#000000',
  },
}
SCSS
$custom: #21399a;
$custom-light: #716fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#21399a",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 154
  },
  "hsl": {
    "h": 228.099,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39268,
    "c": 0.16051,
    "h": 267.5
  },
  "luminance": 0.05583
}

Semantic roles & 50–950 ramp

primary
#21399A
secondary
#C0AB57
accent
#C640E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #21399A

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

Preview Lab → · Contrast checker → · Palette generator →

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