#21308D#21308D

#21308D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.154 H 269.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#21308D
RGBrgb(33, 48, 141)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 77%, 55%)
CMYKcmyk(76.6%, 66%, 0%, 44.7%)
CIE-LABlab(24.83, 28.39, -53.20)
CIE-LCHlch(24.83, 60.30, 298.09°)
OKLaboklab(36.32% -0.0009 -0.1538)
OKLCHoklch(36.32% 0.154 269.7)
XYZxyz(6.4902, 4.3596, 25.6936)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21308D #8D7E21
analogous
#21668D #21308D #48218D
triadic
#21308D #8D2130 #308D21
tetradic
#21308D #8D2166 #8D7E21 #218D48
square
#21308D #8D2166 #8D7E21 #218D48
split-complementary
#21308D #8D4821 #668D21
monochromatic
#0A0E2A #151F5B #21308D #2D41BF #5264D6

Accessibility & contrast

On white

11.22
#21308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#21308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21308D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21308D#FFFFFF#000000##FFFFFF
##21308D1.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)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21308d;
/* rgb */ color: rgb(33, 48, 141);
/* oklch */ color: oklch(36.3% 0.154 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e68af',
    500: '#21308d',
    950: '#000000',
  },
}
SCSS
$custom: #21308d;
$custom-light: #6e68af;
$custom-dark: #000000;
JSON
{
  "hex": "#21308d",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 231.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36321,
    "c": 0.15383,
    "h": 269.7
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#21308D
secondary
#BAAB50
accent
#CF43E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21308D

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

Preview Lab → · Contrast checker → · Palette generator →

#21308D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva