#22398B#22398B

#22398B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.139 H 267.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#22398B
RGBrgb(34, 57, 139)
HSLhsl(227, 61%, 34%)
HSVhsv(227, 76%, 55%)
CMYKcmyk(75.5%, 59%, 0%, 45.5%)
CIE-LABlab(27.10, 21.60, -48.24)
CIE-LCHlch(27.10, 52.86, 294.12°)
OKLaboklab(37.97% -0.0064 -0.1392)
OKLCHoklch(37.97% 0.139 267.4)
XYZxyz(6.7814, 5.1297, 25.0538)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22398B #8B7422
analogous
#226E8B #22398B #40228B
triadic
#22398B #8B2239 #398B22
tetradic
#22398B #8B226E #8B7422 #228B40
square
#22398B #8B226E #8B7422 #228B40
split-complementary
#22398B #8B4022 #6E8B22
monochromatic
#0A1129 #16255A #22398B #2E4DBC #536FD5

Accessibility & contrast

On white

10.37
#22398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#22398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22398B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22398B#FFFFFF#000000##FFFFFF
##22398B1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #22398b;
/* rgb */ color: rgb(34, 57, 139);
/* oklch */ color: oklch(38.0% 0.139 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fae',
    500: '#22398b',
    950: '#000000',
  },
}
SCSS
$custom: #22398b;
$custom-light: #6d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#22398b",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 226.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37967,
    "c": 0.13931,
    "h": 267.4
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#22398B
secondary
#B8A250
accent
#C144E4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #22398B

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

Preview Lab → · Contrast checker → · Palette generator →

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