#21389C#21389C

#21389C is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.164 H 267.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#21389C
RGBrgb(33, 56, 156)
HSLhsl(229, 65%, 37%)
HSVhsv(229, 79%, 61%)
CMYKcmyk(78.8%, 64.1%, 0%, 38.8%)
CIE-LABlab(28.25, 28.75, -56.81)
CIE-LCHlch(28.25, 63.67, 296.85°)
OKLaboklab(39.26% -0.0065 -0.1643)
OKLCHoklch(39.26% 0.164 267.7)
XYZxyz(8.0400, 5.5511, 32.0938)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21389C #9C8521
analogous
#21769C #21389C #47219C
triadic
#21389C #9C2138 #389C21
tetradic
#21389C #9C2176 #9C8521 #219C47
square
#21389C #9C2176 #9C8521 #219C47
split-complementary
#21389C #9C4721 #769C21
monochromatic
#0C1437 #162669 #21389C #2C4ACF #5B73DC

Accessibility & contrast

On white

9.95
#21389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#21389C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21389C
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21389C#FFFFFF#000000##FFFFFF
##21389C1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21389c;
/* rgb */ color: rgb(33, 56, 156);
/* oklch */ color: oklch(39.3% 0.164 267.7);
Tailwind
colors: {
  custom: {
    50: '#716eba',
    500: '#21389c',
    950: '#000000',
  },
}
SCSS
$custom: #21389c;
$custom-light: #716eba;
$custom-dark: #000000;
JSON
{
  "hex": "#21389c",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 228.78,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39263,
    "c": 0.16445,
    "h": 267.7
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

primary
#21389C
secondary
#C1AD58
accent
#C940E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21389C

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

Preview Lab → · Contrast checker → · Palette generator →

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