#21298D#21298D

#21298D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.162 H 271.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#21298D
RGBrgb(33, 41, 141)
HSLhsl(236, 62%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(76.6%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.11, 32.99, -56.02)
CIE-LCHlch(23.11, 65.02, 300.49°)
OKLaboklab(35.07% 0.0034 -0.1621)
OKLCHoklch(35.07% 0.162 271.2)
XYZxyz(6.2262, 3.8316, 25.6056)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21298D #8D8521
analogous
#215F8D #21298D #4F218D
triadic
#21298D #8D2129 #298D21
tetradic
#21298D #8D215F #8D8521 #218D4F
square
#21298D #8D215F #8D8521 #218D4F
split-complementary
#21298D #8D4F21 #5F8D21
monochromatic
#0A0C2A #151B5B #21298D #2D37BF #525CD6

Accessibility & contrast

On white

11.89
#21298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#21298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21298D
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21298D#FFFFFF#000000##FFFFFF
##21298D1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21298d;
/* rgb */ color: rgb(33, 41, 141);
/* oklch */ color: oklch(35.1% 0.162 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f63af',
    500: '#21298d',
    950: '#000000',
  },
}
SCSS
$custom: #21298d;
$custom-light: #6f63af;
$custom-dark: #000000;
JSON
{
  "hex": "#21298d",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 235.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35069,
    "c": 0.16215,
    "h": 271.2
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#21298D
secondary
#BAB250
accent
#D943E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #21298D

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

Preview Lab → · Contrast checker → · Palette generator →

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