#22398C#22398C

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

Color values

HEX#22398C
RGBrgb(34, 57, 140)
HSLhsl(227, 61%, 34%)
HSVhsv(227, 76%, 55%)
CMYKcmyk(75.7%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.18, 21.99, -48.73)
CIE-LCHlch(27.18, 53.46, 294.29°)
OKLaboklab(38.05% -0.0063 -0.1406)
OKLCHoklch(38.05% 0.141 267.4)
XYZxyz(6.8548, 5.1591, 25.4404)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22398C #8C7522
analogous
#226E8C #22398C #40228C
triadic
#22398C #8C2239 #398C22
tetradic
#22398C #8C226E #8C7522 #228C40
square
#22398C #8C226E #8C7522 #228C40
split-complementary
#22398C #8C4022 #6E8C22
monochromatic
#0A112A #16255B #22398C #2E4DBD #536FD5

Accessibility & contrast

On white

10.33
#22398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22398C
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22398C#FFFFFF#000000##FFFFFF
##22398C1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #22398c;
/* rgb */ color: rgb(34, 57, 140);
/* oklch */ color: oklch(38.1% 0.141 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fae',
    500: '#22398c',
    950: '#000000',
  },
}
SCSS
$custom: #22398c;
$custom-light: #6d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#22398c",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 226.981,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.14073,
    "h": 267.4
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22398C

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

Preview Lab → · Contrast checker → · Palette generator →

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