#22297E#22297E

#22297E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.141 H 272.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#22297E
RGBrgb(34, 41, 126)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(73%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.70, 27.54, -48.93)
CIE-LCHlch(21.70, 56.14, 299.37°)
OKLaboklab(33.61% 0.006 -0.1413)
OKLCHoklch(33.61% 0.141 272.4)
XYZxyz(5.2173, 3.4318, 20.1221)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22297E #7E7722
analogous
#22577E #22297E #49227E
triadic
#22297E #7E2229 #297E22
tetradic
#22297E #7E2257 #7E7722 #227E49
square
#22297E #7E2257 #7E7722 #227E49
split-complementary
#22297E #7E4922 #577E22
monochromatic
#080A1E #15194E #22297E #2F39AE #4C56CF

Accessibility & contrast

On white

12.45
#22297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#22297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22297E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22297E#FFFFFF#000000##FFFFFF
##22297E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22297e;
/* rgb */ color: rgb(34, 41, 126);
/* oklch */ color: oklch(33.6% 0.141 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b63a4',
    500: '#22297e',
    950: '#000000',
  },
}
SCSS
$custom: #22297e;
$custom-light: #6b63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22297e",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 235.435,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33612,
    "c": 0.14147,
    "h": 272.4
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#22297E
secondary
#B1A94B
accent
#D547E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22297E

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

Preview Lab → · Contrast checker → · Palette generator →

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