#22277A#22277A

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

Color values

HEX#22277A
RGBrgb(34, 39, 122)
HSLhsl(237, 56%, 31%)
HSVhsv(237, 72%, 48%)
CMYKcmyk(72.1%, 68%, 0%, 52.2%)
CIE-LABlab(20.81, 27.38, -47.84)
CIE-LCHlch(20.81, 55.12, 299.79°)
OKLaboklab(32.85% 0.0078 -0.1382)
OKLCHoklch(32.85% 0.138 273.2)
XYZxyz(4.8969, 3.1958, 18.7674)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22277A #7A7522
analogous
#22537A #22277A #49227A
triadic
#22277A #7A2227 #277A22
tetradic
#22277A #7A2253 #7A7522 #227A49
square
#22277A #7A2253 #7A7522 #227A49
split-complementary
#22277A #7A4922 #537A22
monochromatic
#07081A #15184A #22277A #2F36AA #4A51CD

Accessibility & contrast

On white

12.81
#22277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22277A
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22277A#FFFFFF#000000##FFFFFF
##22277A1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22277a;
/* rgb */ color: rgb(34, 39, 122);
/* oklch */ color: oklch(32.9% 0.138 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a61a1',
    500: '#22277a',
    950: '#000000',
  },
}
SCSS
$custom: #22277a;
$custom-light: #6a61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#22277a",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 236.591,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.13838,
    "h": 273.2
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#22277A
secondary
#ADA74B
accent
#D748E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #22277A

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

Preview Lab → · Contrast checker → · Palette generator →

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