#21318F#21318F

#21318F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.155 H 269.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#21318F
RGBrgb(33, 49, 143)
HSLhsl(231, 63%, 35%)
HSVhsv(231, 77%, 56%)
CMYKcmyk(76.9%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.27, 28.48, -53.72)
CIE-LCHlch(25.27, 60.80, 297.93°)
OKLaboklab(36.7% -0.0016 -0.1553)
OKLCHoklch(36.7% 0.155 269.4)
XYZxyz(6.6817, 4.5024, 26.4982)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21318F #8F7F21
analogous
#21688F #21318F #48218F
triadic
#21318F #8F2131 #318F21
tetradic
#21318F #8F2168 #8F7F21 #218F48
square
#21318F #8F2168 #8F7F21 #218F48
split-complementary
#21318F #8F4821 #688F21
monochromatic
#0A0F2C #16205D #21318F #2C42C1 #5366D7

Accessibility & contrast

On white

11.05
#21318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#21318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21318F
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21318F#FFFFFF#000000##FFFFFF
##21318F1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21318f;
/* rgb */ color: rgb(33, 49, 143);
/* oklch */ color: oklch(36.7% 0.155 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e69b1',
    500: '#21318f',
    950: '#000000',
  },
}
SCSS
$custom: #21318f;
$custom-light: #6e69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21318f",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 231.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36702,
    "c": 0.15535,
    "h": 269.4
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#21318F
secondary
#BBAB51
accent
#CE42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21318F

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

Preview Lab → · Contrast checker → · Palette generator →

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