#22297D#22297D

#22297D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.140 H 272.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#22297D
RGBrgb(34, 41, 125)
HSLhsl(235, 57%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(72.8%, 67.2%, 0%, 51%)
CIE-LABlab(21.60, 27.16, -48.45)
CIE-LCHlch(21.60, 55.54, 299.28°)
OKLaboklab(33.52% 0.0061 -0.1399)
OKLCHoklch(33.52% 0.14 272.5)
XYZxyz(5.1531, 3.4061, 19.7839)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22297D #7D7622
analogous
#22567D #22297D #48227D
triadic
#22297D #7D2229 #297D22
tetradic
#22297D #7D2256 #7D7622 #227D48
square
#22297D #7D2256 #7D7622 #227D48
split-complementary
#22297D #7D4822 #567D22
monochromatic
#08091D #15194D #22297D #2F39AD #4B55CE

Accessibility & contrast

On white

12.49
#22297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22297D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22297D#FFFFFF#000000##FFFFFF
##22297D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22297d;
/* rgb */ color: rgb(34, 41, 125);
/* oklch */ color: oklch(33.5% 0.140 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b63a3',
    500: '#22297d',
    950: '#000000',
  },
}
SCSS
$custom: #22297d;
$custom-light: #6b63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22297d",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 235.385,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33515,
    "c": 0.14007,
    "h": 272.5
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#22297D
secondary
#B0A84B
accent
#D547E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22297D

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

Preview Lab → · Contrast checker → · Palette generator →

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