#22298F#22298F

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

Color values

HEX#22298F
RGBrgb(34, 41, 143)
HSLhsl(236, 62%, 35%)
HSVhsv(236, 76%, 56%)
CMYKcmyk(76.2%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.37, 33.83, -56.84)
CIE-LCHlch(23.37, 66.14, 300.76°)
OKLaboklab(35.33% 0.0042 -0.1645)
OKLCHoklch(35.33% 0.165 271.5)
XYZxyz(6.4089, 3.9085, 26.3979)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22298F #8F8822
analogous
#225F8F #22298F #52228F
triadic
#22298F #8F2229 #298F22
tetradic
#22298F #8F225F #8F8822 #228F52
square
#22298F #8F225F #8F8822 #228F52
split-complementary
#22298F #8F5222 #5F8F22
monochromatic
#0A0D2C #161B5E #22298F #2E37C0 #555DD7

Accessibility & contrast

On white

11.79
#22298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22298F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22298F#FFFFFF#000000##FFFFFF
##22298F1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22298f;
/* rgb */ color: rgb(34, 41, 143);
/* oklch */ color: oklch(35.3% 0.165 271.5);
Tailwind
colors: {
  custom: {
    50: '#7063b1',
    500: '#22298f',
    950: '#000000',
  },
}
SCSS
$custom: #22298f;
$custom-light: #7063b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22298f",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 236.147,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.16452,
    "h": 271.5
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#22298F
secondary
#BAB452
accent
#DA43E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22298F

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

Preview Lab → · Contrast checker → · Palette generator →

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