#21269B#21269B

#21269B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.183 H 270.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#21269B
RGBrgb(33, 38, 155)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 61%)
CMYKcmyk(78.7%, 75.5%, 0%, 39.2%)
CIE-LABlab(23.92, 39.84, -63.32)
CIE-LCHlch(23.92, 74.81, 302.17°)
OKLaboklab(36.09% 0.0028 -0.1834)
OKLCHoklch(36.09% 0.183 270.9)
XYZxyz(7.2347, 4.0753, 31.4093)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21269B #9B9621
analogous
#21639B #21269B #59219B
triadic
#21269B #9B2126 #269B21
tetradic
#21269B #9B2163 #9B9621 #219B59
square
#21269B #9B2163 #9B9621 #219B59
split-complementary
#21269B #9B5921 #639B21
monochromatic
#0C0D36 #161A69 #21269B #2C32CD #5A60DC

Accessibility & contrast

On white

11.57
#21269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#21269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21269B
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21269B#FFFFFF#000000##FFFFFF
##21269B1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21269b;
/* rgb */ color: rgb(33, 38, 155);
/* oklch */ color: oklch(36.1% 0.183 270.9);
Tailwind
colors: {
  custom: {
    50: '#7362ba',
    500: '#21269b',
    950: '#000000',
  },
}
SCSS
$custom: #21269b;
$custom-light: #7362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21269b",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 237.541,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36092,
    "c": 0.18339,
    "h": 270.9
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#21269B
secondary
#C0BC58
accent
#E140E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21269B

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

Preview Lab → · Contrast checker → · Palette generator →

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