#22267E#22267E

#22267E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.145 H 273.2°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#22267E
RGBrgb(34, 38, 126)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 73%, 49%)
CMYKcmyk(73%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.95, 29.53, -50.15)
CIE-LCHlch(20.95, 58.20, 300.49°)
OKLaboklab(33.07% 0.0082 -0.1449)
OKLCHoklch(33.07% 0.145 273.2)
XYZxyz(5.1174, 3.2322, 20.0888)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22267E #7E7A22
analogous
#22547E #22267E #4C227E
triadic
#22267E #7E2226 #267E22
tetradic
#22267E #7E2254 #7E7A22 #227E4C
square
#22267E #7E2254 #7E7A22 #227E4C
split-complementary
#22267E #7E4C22 #547E22
monochromatic
#08091E #15174E #22267E #2F35AE #4C51CF

Accessibility & contrast

On white

12.75
#22267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#22267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22267E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22267E#FFFFFF#000000##FFFFFF
##22267E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #22267e;
/* rgb */ color: rgb(34, 38, 126);
/* oklch */ color: oklch(33.1% 0.145 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c60a4',
    500: '#22267e',
    950: '#000000',
  },
}
SCSS
$custom: #22267e;
$custom-light: #6c60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22267e",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 237.391,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.14517,
    "h": 273.2
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#22267E
secondary
#B1AC4B
accent
#DA47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22267E

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

Preview Lab → · Contrast checker → · Palette generator →

#22267E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva