#21318C#21318C

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

Color values

HEX#21318C
RGBrgb(33, 49, 140)
HSLhsl(231, 62%, 34%)
HSVhsv(231, 76%, 55%)
CMYKcmyk(76.4%, 65%, 0%, 45.1%)
CIE-LABlab(24.99, 27.34, -52.31)
CIE-LCHlch(24.99, 59.02, 297.59°)
OKLaboklab(36.41% -0.0015 -0.1512)
OKLCHoklch(36.41% 0.151 269.4)
XYZxyz(6.4575, 4.4127, 25.3173)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21318C #8C7C21
analogous
#21678C #21318C #47218C
triadic
#21318C #8C2131 #318C21
tetradic
#21318C #8C2167 #8C7C21 #218C47
square
#21318C #8C2167 #8C7C21 #218C47
split-complementary
#21318C #8C4721 #678C21
monochromatic
#0A0E29 #15205A #21318C #2D42BE #5165D6

Accessibility & contrast

On white

11.15
#21318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21318C
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21318C#FFFFFF#000000##FFFFFF
##21318C1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21318c;
/* rgb */ color: rgb(33, 49, 140);
/* oklch */ color: oklch(36.4% 0.151 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e69ae',
    500: '#21318c',
    950: '#000000',
  },
}
SCSS
$custom: #21318c;
$custom-light: #6e69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21318c",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 231.028,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.15122,
    "h": 269.4
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#21318C
secondary
#B9AA4F
accent
#CD43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21318C

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

Preview Lab → · Contrast checker → · Palette generator →

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