#21308E#21308E

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

Color values

HEX#21308E
RGBrgb(33, 48, 142)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 77%, 56%)
CMYKcmyk(76.8%, 66.2%, 0%, 44.3%)
CIE-LABlab(24.92, 28.77, -53.67)
CIE-LCHlch(24.92, 60.89, 298.20°)
OKLaboklab(36.42% -0.0009 -0.1552)
OKLCHoklch(36.42% 0.155 269.6)
XYZxyz(6.5650, 4.3895, 26.0872)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21308E #8E7F21
analogous
#21678E #21308E #49218E
triadic
#21308E #8E2130 #308E21
tetradic
#21308E #8E2167 #8E7F21 #218E49
square
#21308E #8E2167 #8E7F21 #218E49
split-complementary
#21308E #8E4921 #678E21
monochromatic
#0A0E2B #151F5C #21308E #2D41C0 #5265D7

Accessibility & contrast

On white

11.18
#21308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21308E
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21308E#FFFFFF#000000##FFFFFF
##21308E1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21308e;
/* rgb */ color: rgb(33, 48, 142);
/* oklch */ color: oklch(36.4% 0.155 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e68b0',
    500: '#21308e',
    950: '#000000',
  },
}
SCSS
$custom: #21308e;
$custom-light: #6e68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21308e",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 231.743,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36418,
    "c": 0.1552,
    "h": 269.6
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#21308E
secondary
#BAAC50
accent
#CF42E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21308E

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

Preview Lab → · Contrast checker → · Palette generator →

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