#21269F#21269F

#21269F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.188 H 270.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#21269F
RGBrgb(33, 38, 159)
HSLhsl(238, 66%, 38%)
HSVhsv(238, 79%, 62%)
CMYKcmyk(79.2%, 76.1%, 0%, 37.6%)
CIE-LABlab(24.36, 41.22, -65.04)
CIE-LCHlch(24.36, 77.00, 302.36°)
OKLaboklab(36.54% 0.0021 -0.1883)
OKLCHoklch(36.54% 0.188 270.6)
XYZxyz(7.5762, 4.2119, 33.2079)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21269F #9F9A21
analogous
#21659F #21269F #5B219F
triadic
#21269F #9F2126 #269F21
tetradic
#21269F #9F2165 #9F9A21 #219F5B
square
#21269F #9F2165 #9F9A21 #219F5B
split-complementary
#21269F #9F5B21 #659F21
monochromatic
#0C0E3A #161A6C #21269F #2C32D2 #5D62DD

Accessibility & contrast

On white

11.40
#21269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#21269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21269F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21269F#FFFFFF#000000##FFFFFF
##21269F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21269f;
/* rgb */ color: rgb(33, 38, 159);
/* oklch */ color: oklch(36.5% 0.188 270.6);
Tailwind
colors: {
  custom: {
    50: '#7462bd',
    500: '#21269f',
    950: '#000000',
  },
}
SCSS
$custom: #21269f;
$custom-light: #7462bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21269f",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 237.619,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36536,
    "c": 0.18836,
    "h": 270.6
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#21269F
secondary
#C2BE5A
accent
#E23FE9
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21269F

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

Preview Lab → · Contrast checker → · Palette generator →

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