#22277B#22277B

#22277B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.140 H 273.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#22277B
RGBrgb(34, 39, 123)
HSLhsl(237, 57%, 31%)
HSVhsv(237, 72%, 48%)
CMYKcmyk(72.4%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.91, 27.75, -48.32)
CIE-LCHlch(20.91, 55.72, 299.87°)
OKLaboklab(32.95% 0.0078 -0.1396)
OKLCHoklch(32.95% 0.14 273.2)
XYZxyz(4.9592, 3.2207, 19.0954)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22277B #7B7622
analogous
#22537B #22277B #49227B
triadic
#22277B #7B2227 #277B22
tetradic
#22277B #7B2253 #7B7622 #227B49
square
#22277B #7B2253 #7B7622 #227B49
split-complementary
#22277B #7B4922 #537B22
monochromatic
#07091B #15184B #22277B #2F36AB #4A52CD

Accessibility & contrast

On white

12.77
#22277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#22277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22277B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22277B#FFFFFF#000000##FFFFFF
##22277B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #22277b;
/* rgb */ color: rgb(34, 39, 123);
/* oklch */ color: oklch(32.9% 0.140 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b61a2',
    500: '#22277b',
    950: '#000000',
  },
}
SCSS
$custom: #22277b;
$custom-light: #6b61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22277b",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 236.629,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32949,
    "c": 0.13979,
    "h": 273.2
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#22277B
secondary
#AEA84B
accent
#D748E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #22277B

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

Preview Lab → · Contrast checker → · Palette generator →

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