#22298E#22298E

#22298E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.163 H 271.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#22298E
RGBrgb(34, 41, 142)
HSLhsl(236, 61%, 35%)
HSVhsv(236, 76%, 56%)
CMYKcmyk(76.1%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.27, 33.46, -56.38)
CIE-LCHlch(23.27, 65.56, 300.69°)
OKLaboklab(35.23% 0.0044 -0.1631)
OKLCHoklch(35.23% 0.163 271.5)
XYZxyz(6.3335, 3.8783, 26.0007)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22298E #8E8722
analogous
#225F8E #22298E #51228E
triadic
#22298E #8E2229 #298E22
tetradic
#22298E #8E225F #8E8722 #228E51
square
#22298E #8E225F #8E8722 #228E51
split-complementary
#22298E #8E5122 #5F8E22
monochromatic
#0A0C2B #161B5D #22298E #2E37BF #545DD6

Accessibility & contrast

On white

11.83
#22298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#22298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22298E
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22298E#FFFFFF#000000##FFFFFF
##22298E1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22298e;
/* rgb */ color: rgb(34, 41, 142);
/* oklch */ color: oklch(35.2% 0.163 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f63b0',
    500: '#22298e',
    950: '#000000',
  },
}
SCSS
$custom: #22298e;
$custom-light: #6f63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22298e",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 236.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35229,
    "c": 0.1632,
    "h": 271.5
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#22298E
secondary
#BAB352
accent
#DA43E4
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22298E

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

Preview Lab → · Contrast checker → · Palette generator →

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