#21269D#21269D

#21269D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.186 H 270.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#21269D
RGBrgb(33, 38, 157)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 62%)
CMYKcmyk(79%, 75.8%, 0%, 38.4%)
CIE-LABlab(24.14, 40.53, -64.18)
CIE-LCHlch(24.14, 75.91, 302.27°)
OKLaboklab(36.31% 0.0025 -0.1859)
OKLCHoklch(36.31% 0.186 270.8)
XYZxyz(7.4040, 4.1431, 32.3012)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21269D #9D9821
analogous
#21649D #21269D #5A219D
triadic
#21269D #9D2126 #269D21
tetradic
#21269D #9D2164 #9D9821 #219D5A
square
#21269D #9D2164 #9D9821 #219D5A
split-complementary
#21269D #9D5A21 #649D21
monochromatic
#0C0E38 #161A6A #21269D #2C32D0 #5C61DD

Accessibility & contrast

On white

11.48
#21269D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#21269D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21269D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21269D#FFFFFF#000000##FFFFFF
##21269D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21269d;
/* rgb */ color: rgb(33, 38, 157);
/* oklch */ color: oklch(36.3% 0.186 270.8);
Tailwind
colors: {
  custom: {
    50: '#7362bb',
    500: '#21269d',
    950: '#000000',
  },
}
SCSS
$custom: #21269d;
$custom-light: #7362bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21269d",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 157
  },
  "hsl": {
    "h": 237.581,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36313,
    "c": 0.18588,
    "h": 270.8
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#21269D
secondary
#C1BD59
accent
#E140E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21269D

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

Preview Lab → · Contrast checker → · Palette generator →

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