#21318B#21318B

#21318B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.150 H 269.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#21318B
RGBrgb(33, 49, 139)
HSLhsl(231, 62%, 34%)
HSVhsv(231, 76%, 55%)
CMYKcmyk(76.3%, 64.7%, 0%, 45.5%)
CIE-LABlab(24.90, 26.95, -51.84)
CIE-LCHlch(24.90, 58.42, 297.47°)
OKLaboklab(36.32% -0.0015 -0.1498)
OKLCHoklch(36.32% 0.15 269.4)
XYZxyz(6.3841, 4.3834, 24.9307)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21318B #8B7B21
analogous
#21668B #21318B #46218B
triadic
#21318B #8B2131 #318B21
tetradic
#21318B #8B2166 #8B7B21 #218B46
square
#21318B #8B2166 #8B7B21 #218B46
split-complementary
#21318B #8B4621 #668B21
monochromatic
#0A0E28 #15205A #21318B #2D42BC #5165D6

Accessibility & contrast

On white

11.19
#21318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#21318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21318B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21318B#FFFFFF#000000##FFFFFF
##21318B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21318b;
/* rgb */ color: rgb(33, 49, 139);
/* oklch */ color: oklch(36.3% 0.150 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d69ae',
    500: '#21318b',
    950: '#000000',
  },
}
SCSS
$custom: #21318b;
$custom-light: #6d69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21318b",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 230.943,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36319,
    "c": 0.14984,
    "h": 269.4
  },
  "luminance": 0.04384
}

Semantic roles & 50–950 ramp

primary
#21318B
secondary
#B9A94F
accent
#CC43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21318B

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

Preview Lab → · Contrast checker → · Palette generator →

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