#21299D#21299D

#21299D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.183 H 270.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#21299D
RGBrgb(33, 41, 157)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 62%)
CMYKcmyk(79%, 73.9%, 0%, 38.4%)
CIE-LABlab(24.77, 38.75, -63.13)
CIE-LCHlch(24.77, 74.08, 301.54°)
OKLaboklab(36.77% 0.0012 -0.1828)
OKLCHoklch(36.77% 0.183 270.4)
XYZxyz(7.5039, 4.3427, 32.3345)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21299D #9D9521
analogous
#21679D #21299D #57219D
triadic
#21299D #9D2129 #299D21
tetradic
#21299D #9D2167 #9D9521 #219D57
square
#21299D #9D2167 #9D9521 #219D57
split-complementary
#21299D #9D5721 #679D21
monochromatic
#0C0F38 #161C6A #21299D #2C36D0 #5C64DD

Accessibility & contrast

On white

11.24
#21299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#21299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21299D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21299D#FFFFFF#000000##FFFFFF
##21299D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21299d;
/* rgb */ color: rgb(33, 41, 157);
/* oklch */ color: oklch(36.8% 0.183 270.4);
Tailwind
colors: {
  custom: {
    50: '#7364bb',
    500: '#21299d',
    950: '#000000',
  },
}
SCSS
$custom: #21299d;
$custom-light: #7364bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21299d",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 236.129,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36766,
    "c": 0.18284,
    "h": 270.4
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#21299D
secondary
#C1BA59
accent
#DD40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #21299D

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

Preview Lab → · Contrast checker → · Palette generator →

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