#21308A#21308A

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

Color values

HEX#21308A
RGBrgb(33, 48, 138)
HSLhsl(231, 61%, 34%)
HSVhsv(231, 76%, 54%)
CMYKcmyk(76.1%, 65.2%, 0%, 45.9%)
CIE-LABlab(24.55, 27.25, -51.79)
CIE-LCHlch(24.55, 58.52, 297.75°)
OKLaboklab(36.03% -0.0007 -0.1497)
OKLCHoklch(36.03% 0.15 269.7)
XYZxyz(6.2700, 4.2716, 24.5339)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21308A #8A7B21
analogous
#21648A #21308A #46218A
triadic
#21308A #8A2130 #308A21
tetradic
#21308A #8A2164 #8A7B21 #218A46
square
#21308A #8A2164 #8A7B21 #218A46
split-complementary
#21308A #8A4621 #648A21
monochromatic
#090E27 #151F59 #21308A #2D41BB #5063D5

Accessibility & contrast

On white

11.32
#21308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#21308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21308A
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21308A#FFFFFF#000000##FFFFFF
##21308A1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21308a;
/* rgb */ color: rgb(33, 48, 138);
/* oklch */ color: oklch(36.0% 0.150 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d68ad',
    500: '#21308a',
    950: '#000000',
  },
}
SCSS
$custom: #21308a;
$custom-light: #6d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21308a",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 231.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36032,
    "c": 0.1497,
    "h": 269.7
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#21308A
secondary
#B9A94E
accent
#CD43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21308A

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

Preview Lab → · Contrast checker → · Palette generator →

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