#22298B#22298B

#22298B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.159 H 271.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#22298B
RGBrgb(34, 41, 139)
HSLhsl(236, 61%, 34%)
HSVhsv(236, 76%, 55%)
CMYKcmyk(75.5%, 70.5%, 0%, 45.5%)
CIE-LABlab(22.96, 32.37, -55.01)
CIE-LCHlch(22.96, 63.83, 300.47°)
OKLaboklab(34.92% 0.0047 -0.1592)
OKLCHoklch(34.92% 0.159 271.7)
XYZxyz(6.1112, 3.7894, 24.8304)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22298B #8B8422
analogous
#225E8B #22298B #50228B
triadic
#22298B #8B2229 #298B22
tetradic
#22298B #8B225E #8B8422 #228B50
square
#22298B #8B225E #8B8422 #228B50
split-complementary
#22298B #8B5022 #5E8B22
monochromatic
#0A0C29 #161A5A #22298B #2E38BC #535BD5

Accessibility & contrast

On white

11.95
#22298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22298B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22298B#FFFFFF#000000##FFFFFF
##22298B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22298b;
/* rgb */ color: rgb(34, 41, 139);
/* oklch */ color: oklch(34.9% 0.159 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f63ae',
    500: '#22298b',
    950: '#000000',
  },
}
SCSS
$custom: #22298b;
$custom-light: #6f63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22298b",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 236,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.15922,
    "h": 271.7
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#22298B
secondary
#B8B250
accent
#D944E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22298B

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

Preview Lab → · Contrast checker → · Palette generator →

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