#22277E#22277E

#22277E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.144 H 273.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#22277E
RGBrgb(34, 39, 126)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 73%, 49%)
CMYKcmyk(73%, 69%, 0%, 50.6%)
CIE-LABlab(21.20, 28.87, -49.75)
CIE-LCHlch(21.20, 57.52, 300.13°)
OKLaboklab(33.25% 0.0075 -0.1437)
OKLCHoklch(33.25% 0.144 273)
XYZxyz(5.1498, 3.2970, 20.0996)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22277E #7E7922
analogous
#22557E #22277E #4B227E
triadic
#22277E #7E2227 #277E22
tetradic
#22277E #7E2255 #7E7922 #227E4B
square
#22277E #7E2255 #7E7922 #227E4B
split-complementary
#22277E #7E4B22 #557E22
monochromatic
#08091E #15184E #22277E #2F36AE #4C53CF

Accessibility & contrast

On white

12.66
#22277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#22277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22277E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22277E#FFFFFF#000000##FFFFFF
##22277E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22277e;
/* rgb */ color: rgb(34, 39, 126);
/* oklch */ color: oklch(33.2% 0.144 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b61a4',
    500: '#22277e',
    950: '#000000',
  },
}
SCSS
$custom: #22277e;
$custom-light: #6b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22277e",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 236.739,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33248,
    "c": 0.14394,
    "h": 273
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#22277E
secondary
#B1AB4B
accent
#D847E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22277E

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

Preview Lab → · Contrast checker → · Palette generator →

#22277E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva