#21308B#21308B

#21308B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.151 H 269.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#21308B
RGBrgb(33, 48, 139)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 76%, 55%)
CMYKcmyk(76.3%, 65.5%, 0%, 45.5%)
CIE-LABlab(24.64, 27.63, -52.26)
CIE-LCHlch(24.64, 59.12, 297.86°)
OKLaboklab(36.13% -0.0008 -0.1511)
OKLCHoklch(36.13% 0.151 269.7)
XYZxyz(6.3428, 4.3006, 24.9169)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21308B #8B7C21
analogous
#21658B #21308B #47218B
triadic
#21308B #8B2130 #308B21
tetradic
#21308B #8B2165 #8B7C21 #218B47
square
#21308B #8B2165 #8B7C21 #218B47
split-complementary
#21308B #8B4721 #658B21
monochromatic
#0A0E28 #151F5A #21308B #2D41BC #5164D6

Accessibility & contrast

On white

11.29
#21308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#21308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21308B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21308B#FFFFFF#000000##FFFFFF
##21308B1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21308b;
/* rgb */ color: rgb(33, 48, 139);
/* oklch */ color: oklch(36.1% 0.151 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e68ae',
    500: '#21308b',
    950: '#000000',
  },
}
SCSS
$custom: #21308b;
$custom-light: #6e68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21308b",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 231.509,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36128,
    "c": 0.15108,
    "h": 269.7
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#21308B
secondary
#B9AA4F
accent
#CE43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21308B

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

Preview Lab → · Contrast checker → · Palette generator →

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