#21269C#21269C

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

Color values

HEX#21269C
RGBrgb(33, 38, 156)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 61%)
CMYKcmyk(78.8%, 75.6%, 0%, 38.8%)
CIE-LABlab(24.03, 40.18, -63.75)
CIE-LCHlch(24.03, 75.36, 302.22°)
OKLaboklab(36.2% 0.0026 -0.1846)
OKLCHoklch(36.2% 0.185 270.8)
XYZxyz(7.3190, 4.1090, 31.8534)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21269C #9C9721
analogous
#21649C #21269C #5A219C
triadic
#21269C #9C2126 #269C21
tetradic
#21269C #9C2164 #9C9721 #219C5A
square
#21269C #9C2164 #9C9721 #219C5A
split-complementary
#21269C #9C5A21 #649C21
monochromatic
#0C0D37 #161A69 #21269C #2C32CF #5B60DC

Accessibility & contrast

On white

11.53
#21269C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21269C
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21269C#FFFFFF#000000##FFFFFF
##21269C1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21269c;
/* rgb */ color: rgb(33, 38, 156);
/* oklch */ color: oklch(36.2% 0.185 270.8);
Tailwind
colors: {
  custom: {
    50: '#7362ba',
    500: '#21269c',
    950: '#000000',
  },
}
SCSS
$custom: #21269c;
$custom-light: #7362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21269c",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 156
  },
  "hsl": {
    "h": 237.561,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.18464,
    "h": 270.8
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21269C

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

Preview Lab → · Contrast checker → · Palette generator →

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