#221276#221276

#221276 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.156 H 278.0°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#221276
RGBrgb(34, 18, 118)
HSLhsl(250, 74%, 27%)
HSVhsv(250, 85%, 46%)
CMYKcmyk(71.2%, 84.7%, 0%, 53.7%)
CIE-LABlab(15.90, 38.48, -53.36)
CIE-LCHlch(15.90, 65.79, 305.80°)
OKLaboklab(29.23% 0.0216 -0.1541)
OKLCHoklch(29.23% 0.156 278)
XYZxyz(4.1450, 2.0803, 17.3191)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221276 #667612
analogous
#123476 #221276 #541276
triadic
#221276 #762212 #127622
tetradic
#221276 #761234 #667612 #127654
square
#221276 #761234 #667612 #127654
split-complementary
#221276 #765412 #347612
monochromatic
#08041B #130A41 #221276 #311AAB #4225DE

Accessibility & contrast

On white

14.83
#221276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#221276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221276
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221276#FFFFFF#000000##FFFFFF
##2212761.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #221276;
/* rgb */ color: rgb(34, 18, 118);
/* oklch */ color: oklch(29.2% 0.156 278.0);
Tailwind
colors: {
  custom: {
    50: '#6c549f',
    500: '#221276',
    950: '#000000',
  },
}
SCSS
$custom: #221276;
$custom-light: #6c549f;
$custom-dark: #000000;
JSON
{
  "hex": "#221276",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 249.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2923,
    "c": 0.15564,
    "h": 278
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#221276
secondary
#9AAD37
accent
#F038D3
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #221276

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

Preview Lab → · Contrast checker → · Palette generator →

#221276 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva