#21308F#21308F

#21308F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.157 H 269.6°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#21308F
RGBrgb(33, 48, 143)
HSLhsl(232, 63%, 35%)
HSVhsv(232, 77%, 56%)
CMYKcmyk(76.9%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.01, 29.15, -54.13)
CIE-LCHlch(25.01, 61.48, 298.30°)
OKLaboklab(36.52% -0.001 -0.1566)
OKLCHoklch(36.52% 0.157 269.6)
XYZxyz(6.6404, 4.4197, 26.4844)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21308F #8F8021
analogous
#21678F #21308F #49218F
triadic
#21308F #8F2130 #308F21
tetradic
#21308F #8F2167 #8F8021 #218F49
square
#21308F #8F2167 #8F8021 #218F49
split-complementary
#21308F #8F4921 #678F21
monochromatic
#0A0F2C #161F5D #21308F #2C41C1 #5365D7

Accessibility & contrast

On white

11.15
#21308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#21308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21308F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21308F#FFFFFF#000000##FFFFFF
##21308F1.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)
#004192
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21308f;
/* rgb */ color: rgb(33, 48, 143);
/* oklch */ color: oklch(36.5% 0.157 269.6);
Tailwind
colors: {
  custom: {
    50: '#6f68b1',
    500: '#21308f',
    950: '#000000',
  },
}
SCSS
$custom: #21308f;
$custom-light: #6f68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21308f",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 231.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36515,
    "c": 0.15656,
    "h": 269.6
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#21308F
secondary
#BBAC51
accent
#CF42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21308F

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

Preview Lab → · Contrast checker → · Palette generator →

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