#22277F#22277F

#22277F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.145 H 272.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#22277F
RGBrgb(34, 39, 127)
HSLhsl(237, 58%, 32%)
HSVhsv(237, 73%, 50%)
CMYKcmyk(73.2%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.29, 29.24, -50.22)
CIE-LCHlch(21.29, 58.11, 300.21°)
OKLaboklab(33.35% 0.0074 -0.1451)
OKLCHoklch(33.35% 0.145 272.9)
XYZxyz(5.2147, 3.3229, 20.4411)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22277F #7F7A22
analogous
#22567F #22277F #4C227F
triadic
#22277F #7F2227 #277F22
tetradic
#22277F #7F2256 #7F7A22 #227F4C
square
#22277F #7F2256 #7F7A22 #227F4C
split-complementary
#22277F #7F4C22 #567F22
monochromatic
#08091E #15184F #22277F #2F36AF #4C53CF

Accessibility & contrast

On white

12.62
#22277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22277F
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22277F#FFFFFF#000000##FFFFFF
##22277F1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22277f;
/* rgb */ color: rgb(34, 39, 127);
/* oklch */ color: oklch(33.3% 0.145 272.9);
Tailwind
colors: {
  custom: {
    50: '#6c61a5',
    500: '#22277f',
    950: '#000000',
  },
}
SCSS
$custom: #22277f;
$custom-light: #6c61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22277f",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 236.774,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33348,
    "c": 0.14533,
    "h": 272.9
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#22277F
secondary
#B2AC4B
accent
#D947E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22277F

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

Preview Lab → · Contrast checker → · Palette generator →

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