#21268F#21268F

#21268F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.168 H 271.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#21268F
RGBrgb(33, 38, 143)
HSLhsl(237, 63%, 35%)
HSVhsv(237, 77%, 56%)
CMYKcmyk(76.9%, 73.4%, 0%, 43.9%)
CIE-LABlab(22.63, 35.61, -58.06)
CIE-LCHlch(22.63, 68.11, 301.52°)
OKLaboklab(34.78% 0.0047 -0.168)
OKLCHoklch(34.78% 0.168 271.6)
XYZxyz(6.2766, 3.6921, 26.3631)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21268F #8F8A21
analogous
#215D8F #21268F #53218F
triadic
#21268F #8F2126 #268F21
tetradic
#21268F #8F215D #8F8A21 #218F53
square
#21268F #8F215D #8F8A21 #218F53
split-complementary
#21268F #8F5321 #5D8F21
monochromatic
#0A0C2C #16195D #21268F #2C33C1 #5359D7

Accessibility & contrast

On white

12.08
#21268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#21268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21268F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21268F#FFFFFF#000000##FFFFFF
##21268F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21268f;
/* rgb */ color: rgb(33, 38, 143);
/* oklch */ color: oklch(34.8% 0.168 271.6);
Tailwind
colors: {
  custom: {
    50: '#7061b1',
    500: '#21268f',
    950: '#000000',
  },
}
SCSS
$custom: #21268f;
$custom-light: #7061b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21268f",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 237.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34785,
    "c": 0.16811,
    "h": 271.6
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#21268F
secondary
#BBB651
accent
#DE42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21268F

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

Preview Lab → · Contrast checker → · Palette generator →

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