#22398D#22398D

#22398D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.142 H 267.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#22398D
RGBrgb(34, 57, 141)
HSLhsl(227, 61%, 34%)
HSVhsv(227, 76%, 55%)
CMYKcmyk(75.9%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.27, 22.38, -49.21)
CIE-LCHlch(27.27, 54.06, 294.45°)
OKLaboklab(38.14% -0.0063 -0.142)
OKLCHoklch(38.14% 0.142 267.5)
XYZxyz(6.9289, 5.1887, 25.8305)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22398D #8D7622
analogous
#226F8D #22398D #41228D
triadic
#22398D #8D2239 #398D22
tetradic
#22398D #8D226F #8D7622 #228D41
square
#22398D #8D226F #8D7622 #228D41
split-complementary
#22398D #8D4122 #6F8D22
monochromatic
#0A112A #16255C #22398D #2E4DBE #5470D6

Accessibility & contrast

On white

10.31
#22398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#22398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22398D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22398D#FFFFFF#000000##FFFFFF
##22398D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #22398d;
/* rgb */ color: rgb(34, 57, 141);
/* oklch */ color: oklch(38.1% 0.142 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e6faf',
    500: '#22398d',
    950: '#000000',
  },
}
SCSS
$custom: #22398d;
$custom-light: #6e6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#22398d",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 227.103,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38142,
    "c": 0.14215,
    "h": 267.5
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#22398D
secondary
#B9A351
accent
#C244E4
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #22398D

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

Preview Lab → · Contrast checker → · Palette generator →

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