#21268D#21268D

#21268D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.166 H 271.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#21268D
RGBrgb(33, 38, 141)
HSLhsl(237, 62%, 34%)
HSVhsv(237, 77%, 55%)
CMYKcmyk(76.6%, 73%, 0%, 44.7%)
CIE-LABlab(22.42, 34.89, -57.16)
CIE-LCHlch(22.42, 66.97, 301.40°)
OKLaboklab(34.57% 0.005 -0.1654)
OKLCHoklch(34.57% 0.166 271.7)
XYZxyz(6.1264, 3.6320, 25.5723)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21268D #8D8821
analogous
#215C8D #21268D #52218D
triadic
#21268D #8D2126 #268D21
tetradic
#21268D #8D215C #8D8821 #218D52
square
#21268D #8D215C #8D8821 #218D52
split-complementary
#21268D #8D5221 #5C8D21
monochromatic
#0A0B2A #15195B #21268D #2D33BF #5258D6

Accessibility & contrast

On white

12.16
#21268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#21268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21268D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21268D#FFFFFF#000000##FFFFFF
##21268D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21268d;
/* rgb */ color: rgb(33, 38, 141);
/* oklch */ color: oklch(34.6% 0.166 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f61af',
    500: '#21268d',
    950: '#000000',
  },
}
SCSS
$custom: #21268d;
$custom-light: #6f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#21268d",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 237.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34571,
    "c": 0.16551,
    "h": 271.7
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#21268D
secondary
#BAB550
accent
#DE43E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #21268D

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

Preview Lab → · Contrast checker → · Palette generator →

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