#22398A#22398A

#22398A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.138 H 267.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#22398A
RGBrgb(34, 57, 138)
HSLhsl(227, 60%, 34%)
HSVhsv(227, 75%, 54%)
CMYKcmyk(75.4%, 58.7%, 0%, 45.9%)
CIE-LABlab(27.02, 21.21, -47.76)
CIE-LCHlch(27.02, 52.25, 293.94°)
OKLaboklab(37.88% -0.0064 -0.1377)
OKLCHoklch(37.88% 0.138 267.3)
XYZxyz(6.7087, 5.1006, 24.6708)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22398A #8A7322
analogous
#226D8A #22398A #3F228A
triadic
#22398A #8A2239 #398A22
tetradic
#22398A #8A226D #8A7322 #228A3F
square
#22398A #8A226D #8A7322 #228A3F
split-complementary
#22398A #8A3F22 #6D8A22
monochromatic
#0A1028 #162559 #22398A #2E4DBB #526FD4

Accessibility & contrast

On white

10.40
#22398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#22398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22398A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22398A#FFFFFF#000000##FFFFFF
##22398A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #22398a;
/* rgb */ color: rgb(34, 57, 138);
/* oklch */ color: oklch(37.9% 0.138 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6fad',
    500: '#22398a',
    950: '#000000',
  },
}
SCSS
$custom: #22398a;
$custom-light: #6d6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#22398a",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 226.731,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3788,
    "c": 0.13788,
    "h": 267.3
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#22398A
secondary
#B8A150
accent
#C044E4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #22398A

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

Preview Lab → · Contrast checker → · Palette generator →

#22398A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva