#221876#221876

#221876 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.150 H 277.1°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#221876
RGBrgb(34, 24, 118)
HSLhsl(246, 66%, 28%)
HSVhsv(246, 80%, 46%)
CMYKcmyk(71.2%, 79.7%, 0%, 53.7%)
CIE-LABlab(16.99, 35.33, -51.56)
CIE-LCHlch(16.99, 62.50, 304.42°)
OKLaboklab(29.99% 0.0185 -0.149)
OKLCHoklch(29.99% 0.15 277.1)
XYZxyz(4.2553, 2.3010, 17.3559)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221876 #6C7618
analogous
#183D76 #221876 #511876
triadic
#221876 #762218 #187622
tetradic
#221876 #76183D #6C7618 #187651
square
#221876 #76183D #6C7618 #187651
split-complementary
#221876 #765118 #3D7618
monochromatic
#070519 #130E43 #221876 #3122A9 #4433D5

Accessibility & contrast

On white

14.38
#221876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#221876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221876
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221876#FFFFFF#000000##FFFFFF
##2218761.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #221876;
/* rgb */ color: rgb(34, 24, 118);
/* oklch */ color: oklch(30.0% 0.150 277.1);
Tailwind
colors: {
  custom: {
    50: '#6b579f',
    500: '#221876',
    950: '#000000',
  },
}
SCSS
$custom: #221876;
$custom-light: #6b579f;
$custom-dark: #000000;
JSON
{
  "hex": "#221876",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 246.383,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29989,
    "c": 0.15012,
    "h": 277.1
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#221876
secondary
#A0AB3F
accent
#E93FD7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #221876

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

Preview Lab → · Contrast checker → · Palette generator →

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