#21309E#21309E

#21309E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.177 H 269.3°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#21309E
RGBrgb(33, 48, 158)
HSLhsl(233, 65%, 37%)
HSVhsv(233, 79%, 62%)
CMYKcmyk(79.1%, 69.6%, 0%, 38%)
CIE-LABlab(26.46, 34.75, -60.96)
CIE-LCHlch(26.46, 70.17, 299.69°)
OKLaboklab(38.01% -0.0022 -0.1765)
OKLCHoklch(38.01% 0.177 269.3)
XYZxyz(7.8536, 4.9050, 32.8740)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21309E #9E8F21
analogous
#216F9E #21309E #51219E
triadic
#21309E #9E2130 #309E21
tetradic
#21309E #9E216F #9E8F21 #219E51
square
#21309E #9E216F #9E8F21 #219E51
split-complementary
#21309E #9E5121 #6F9E21
monochromatic
#0C1139 #16216B #21309E #2C3FD1 #5C6CDD

Accessibility & contrast

On white

10.60
#21309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#21309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21309E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21309E#FFFFFF#000000##FFFFFF
##21309E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21309e;
/* rgb */ color: rgb(33, 48, 158);
/* oklch */ color: oklch(38.0% 0.177 269.3);
Tailwind
colors: {
  custom: {
    50: '#7268bc',
    500: '#21309e',
    950: '#000000',
  },
}
SCSS
$custom: #21309e;
$custom-light: #7268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21309e",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 232.8,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38012,
    "c": 0.17652,
    "h": 269.3
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#21309E
secondary
#C1B559
accent
#D43FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21309E

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

Preview Lab → · Contrast checker → · Palette generator →

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