#21298E#21298E

#21298E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.163 H 271.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#21298E
RGBrgb(33, 41, 142)
HSLhsl(236, 62%, 34%)
HSVhsv(236, 77%, 56%)
CMYKcmyk(76.8%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.21, 33.36, -56.48)
CIE-LCHlch(23.21, 65.59, 300.57°)
OKLaboklab(35.17% 0.0032 -0.1634)
OKLCHoklch(35.17% 0.163 271.1)
XYZxyz(6.3010, 3.8615, 25.9992)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21298E #8E8621
analogous
#21608E #21298E #4F218E
triadic
#21298E #8E2129 #298E21
tetradic
#21298E #8E2160 #8E8621 #218E4F
square
#21298E #8E2160 #8E8621 #218E4F
split-complementary
#21298E #8E4F21 #608E21
monochromatic
#0A0C2B #151B5C #21298E #2D37C0 #525CD7

Accessibility & contrast

On white

11.85
#21298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21298E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21298E#FFFFFF#000000##FFFFFF
##21298E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21298e;
/* rgb */ color: rgb(33, 41, 142);
/* oklch */ color: oklch(35.2% 0.163 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f63b0',
    500: '#21298e',
    950: '#000000',
  },
}
SCSS
$custom: #21298e;
$custom-light: #6f63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21298e",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 235.596,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35173,
    "c": 0.16347,
    "h": 271.1
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#21298E
secondary
#BAB350
accent
#D942E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21298E

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

Preview Lab → · Contrast checker → · Palette generator →

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