#21318A#21318A

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

Color values

HEX#21318A
RGBrgb(33, 49, 138)
HSLhsl(231, 61%, 34%)
HSVhsv(231, 76%, 54%)
CMYKcmyk(76.1%, 64.5%, 0%, 45.9%)
CIE-LABlab(24.81, 26.57, -51.36)
CIE-LCHlch(24.81, 57.83, 297.35°)
OKLaboklab(36.22% -0.0014 -0.1484)
OKLCHoklch(36.22% 0.148 269.4)
XYZxyz(6.3114, 4.3543, 24.5477)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21318A #8A7A21
analogous
#21658A #21318A #45218A
triadic
#21318A #8A2131 #318A21
tetradic
#21318A #8A2165 #8A7A21 #218A45
square
#21318A #8A2165 #8A7A21 #218A45
split-complementary
#21318A #8A4521 #658A21
monochromatic
#090E27 #151F59 #21318A #2D43BB #5064D5

Accessibility & contrast

On white

11.22
#21318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#21318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21318A
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21318A#FFFFFF#000000##FFFFFF
##21318A1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21318a;
/* rgb */ color: rgb(33, 49, 138);
/* oklch */ color: oklch(36.2% 0.148 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d69ad',
    500: '#21318a',
    950: '#000000',
  },
}
SCSS
$custom: #21318a;
$custom-light: #6d69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21318a",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 230.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.14845,
    "h": 269.4
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21318A

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

Preview Lab → · Contrast checker → · Palette generator →

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