#21298F#21298F

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

Color values

HEX#21298F
RGBrgb(33, 41, 143)
HSLhsl(236, 63%, 35%)
HSVhsv(236, 77%, 56%)
CMYKcmyk(76.9%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.31, 33.72, -56.93)
CIE-LCHlch(23.31, 66.17, 300.64°)
OKLaboklab(35.28% 0.0031 -0.1648)
OKLCHoklch(35.28% 0.165 271.1)
XYZxyz(6.3764, 3.8917, 26.3964)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21298F #8F8721
analogous
#21608F #21298F #50218F
triadic
#21298F #8F2129 #298F21
tetradic
#21298F #8F2160 #8F8721 #218F50
square
#21298F #8F2160 #8F8721 #218F50
split-complementary
#21298F #8F5021 #608F21
monochromatic
#0A0C2C #161B5D #21298F #2C37C1 #535DD7

Accessibility & contrast

On white

11.81
#21298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#21298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21298F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21298F#FFFFFF#000000##FFFFFF
##21298F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21298f;
/* rgb */ color: rgb(33, 41, 143);
/* oklch */ color: oklch(35.3% 0.165 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f63b1',
    500: '#21298f',
    950: '#000000',
  },
}
SCSS
$custom: #21298f;
$custom-light: #6f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21298f",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 235.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35277,
    "c": 0.1648,
    "h": 271.1
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#21298F
secondary
#BBB351
accent
#DA42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21298F

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

Preview Lab → · Contrast checker → · Palette generator →

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