#22277C#22277C

#22277C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.141 H 273.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#22277C
RGBrgb(34, 39, 124)
HSLhsl(237, 57%, 31%)
HSVhsv(237, 73%, 49%)
CMYKcmyk(72.6%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.00, 28.13, -48.79)
CIE-LCHlch(21.00, 56.32, 299.96°)
OKLaboklab(33.05% 0.0077 -0.141)
OKLCHoklch(33.05% 0.141 273.1)
XYZxyz(5.0221, 3.2459, 19.4267)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22277C #7C7722
analogous
#22547C #22277C #4A227C
triadic
#22277C #7C2227 #277C22
tetradic
#22277C #7C2254 #7C7722 #227C4A
square
#22277C #7C2254 #7C7722 #227C4A
split-complementary
#22277C #7C4A22 #547C22
monochromatic
#08091C #15184C #22277C #2F36AC #4B52CE

Accessibility & contrast

On white

12.73
#22277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22277C
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22277C#FFFFFF#000000##FFFFFF
##22277C1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #22277c;
/* rgb */ color: rgb(34, 39, 124);
/* oklch */ color: oklch(33.0% 0.141 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b61a3',
    500: '#22277c',
    950: '#000000',
  },
}
SCSS
$custom: #22277c;
$custom-light: #6b61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22277c",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 236.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.14118,
    "h": 273.1
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#22277C
secondary
#AFA94B
accent
#D848E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22277C

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

Preview Lab → · Contrast checker → · Palette generator →

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