#22277D#22277D

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

Color values

HEX#22277D
RGBrgb(34, 39, 125)
HSLhsl(237, 57%, 31%)
HSVhsv(237, 73%, 49%)
CMYKcmyk(72.8%, 68.8%, 0%, 51%)
CIE-LABlab(21.10, 28.50, -49.27)
CIE-LCHlch(21.10, 56.92, 300.05°)
OKLaboklab(33.15% 0.0076 -0.1424)
OKLCHoklch(33.15% 0.143 273)
XYZxyz(5.0856, 3.2713, 19.7615)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22277D #7D7822
analogous
#22547D #22277D #4A227D
triadic
#22277D #7D2227 #277D22
tetradic
#22277D #7D2254 #7D7822 #227D4A
square
#22277D #7D2254 #7D7822 #227D4A
split-complementary
#22277D #7D4A22 #547D22
monochromatic
#08091D #15184D #22277D #2F36AD #4B52CE

Accessibility & contrast

On white

12.69
#22277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#22277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22277D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22277D#FFFFFF#000000##FFFFFF
##22277D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22277d;
/* rgb */ color: rgb(34, 39, 125);
/* oklch */ color: oklch(33.1% 0.143 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b61a4',
    500: '#22277d',
    950: '#000000',
  },
}
SCSS
$custom: #22277d;
$custom-light: #6b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22277d",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 236.703,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33148,
    "c": 0.14256,
    "h": 273
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#22277D
secondary
#B0AA4B
accent
#D847E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22277D

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

Preview Lab → · Contrast checker → · Palette generator →

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