#21308C#21308C

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

Color values

HEX#21308C
RGBrgb(33, 48, 140)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 76%, 55%)
CMYKcmyk(76.4%, 65.7%, 0%, 45.1%)
CIE-LABlab(24.73, 28.01, -52.73)
CIE-LCHlch(24.73, 59.71, 297.98°)
OKLaboklab(36.22% -0.0008 -0.1525)
OKLCHoklch(36.22% 0.152 269.7)
XYZxyz(6.4162, 4.3300, 25.3035)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21308C #8C7D21
analogous
#21668C #21308C #48218C
triadic
#21308C #8C2130 #308C21
tetradic
#21308C #8C2166 #8C7D21 #218C48
square
#21308C #8C2166 #8C7D21 #218C48
split-complementary
#21308C #8C4821 #668C21
monochromatic
#0A0E29 #151F5A #21308C #2D41BE #5164D6

Accessibility & contrast

On white

11.25
#21308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#21308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21308C
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21308C#FFFFFF#000000##FFFFFF
##21308C1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21308c;
/* rgb */ color: rgb(33, 48, 140);
/* oklch */ color: oklch(36.2% 0.152 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e68ae',
    500: '#21308c',
    950: '#000000',
  },
}
SCSS
$custom: #21308c;
$custom-light: #6e68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21308c",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 231.589,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.15246,
    "h": 269.7
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21308C

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

Preview Lab → · Contrast checker → · Palette generator →

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