#22297C#22297C

#22297C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.139 H 272.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#22297C
RGBrgb(34, 41, 124)
HSLhsl(235, 57%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(72.6%, 66.9%, 0%, 51.4%)
CIE-LABlab(21.51, 26.78, -47.97)
CIE-LCHlch(21.51, 54.94, 299.18°)
OKLaboklab(33.42% 0.0062 -0.1385)
OKLCHoklch(33.42% 0.139 272.6)
XYZxyz(5.0895, 3.3807, 19.4492)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22297C #7C7522
analogous
#22567C #22297C #48227C
triadic
#22297C #7C2229 #297C22
tetradic
#22297C #7C2256 #7C7522 #227C48
square
#22297C #7C2256 #7C7522 #227C48
split-complementary
#22297C #7C4822 #567C22
monochromatic
#08091C #15194C #22297C #2F39AC #4B55CE

Accessibility & contrast

On white

12.53
#22297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22297C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22297C#FFFFFF#000000##FFFFFF
##22297C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22297c;
/* rgb */ color: rgb(34, 41, 124);
/* oklch */ color: oklch(33.4% 0.139 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b63a3',
    500: '#22297c',
    950: '#000000',
  },
}
SCSS
$custom: #22297c;
$custom-light: #6b63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22297c",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 235.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33417,
    "c": 0.13867,
    "h": 272.6
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#22297C
secondary
#AFA74B
accent
#D448E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #22297C

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

Preview Lab → · Contrast checker → · Palette generator →

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