#22298C#22298C

#22298C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.161 H 271.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#22298C
RGBrgb(34, 41, 140)
HSLhsl(236, 61%, 34%)
HSVhsv(236, 76%, 55%)
CMYKcmyk(75.7%, 70.7%, 0%, 45.1%)
CIE-LABlab(23.06, 32.73, -55.47)
CIE-LCHlch(23.06, 64.41, 300.54°)
OKLaboklab(35.02% 0.0046 -0.1605)
OKLCHoklch(35.02% 0.161 271.6)
XYZxyz(6.1846, 3.8188, 25.2170)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22298C #8C8522
analogous
#225E8C #22298C #50228C
triadic
#22298C #8C2229 #298C22
tetradic
#22298C #8C225E #8C8522 #228C50
square
#22298C #8C225E #8C8522 #228C50
split-complementary
#22298C #8C5022 #5E8C22
monochromatic
#0A0C2A #161B5B #22298C #2E37BD #535CD5

Accessibility & contrast

On white

11.91
#22298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#22298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22298C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22298C#FFFFFF#000000##FFFFFF
##22298C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22298c;
/* rgb */ color: rgb(34, 41, 140);
/* oklch */ color: oklch(35.0% 0.161 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f63af',
    500: '#22298c',
    950: '#000000',
  },
}
SCSS
$custom: #22298c;
$custom-light: #6f63af;
$custom-dark: #000000;
JSON
{
  "hex": "#22298c",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 236.038,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35022,
    "c": 0.16055,
    "h": 271.6
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#22298C
secondary
#B9B251
accent
#D944E4
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #22298C

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

Preview Lab → · Contrast checker → · Palette generator →

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