#21298B#21298B

#21298B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.159 H 271.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#21298B
RGBrgb(33, 41, 139)
HSLhsl(235, 62%, 34%)
HSVhsv(235, 76%, 55%)
CMYKcmyk(76.3%, 70.5%, 0%, 45.5%)
CIE-LABlab(22.91, 32.26, -55.11)
CIE-LCHlch(22.91, 63.86, 300.34°)
OKLaboklab(34.86% 0.0036 -0.1594)
OKLCHoklch(34.86% 0.159 271.3)
XYZxyz(6.0788, 3.7726, 24.8289)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21298B #8B8321
analogous
#215E8B #21298B #4E218B
triadic
#21298B #8B2129 #298B21
tetradic
#21298B #8B215E #8B8321 #218B4E
square
#21298B #8B215E #8B8321 #218B4E
split-complementary
#21298B #8B4E21 #5E8B21
monochromatic
#0A0C28 #151A5A #21298B #2D38BC #515BD6

Accessibility & contrast

On white

11.97
#21298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21298B
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21298B#FFFFFF#000000##FFFFFF
##21298B1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21298b;
/* rgb */ color: rgb(33, 41, 139);
/* oklch */ color: oklch(34.9% 0.159 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e63ae',
    500: '#21298b',
    950: '#000000',
  },
}
SCSS
$custom: #21298b;
$custom-light: #6e63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21298b",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 235.472,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34862,
    "c": 0.15949,
    "h": 271.3
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#21298B
secondary
#B9B14F
accent
#D943E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21298B

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

Preview Lab → · Contrast checker → · Palette generator →

#21298B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva