#22398E#22398E

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

Color values

HEX#22398E
RGBrgb(34, 57, 142)
HSLhsl(227, 61%, 35%)
HSVhsv(227, 76%, 56%)
CMYKcmyk(76.1%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.35, 22.77, -49.70)
CIE-LCHlch(27.35, 54.66, 294.62°)
OKLaboklab(38.23% -0.0063 -0.1434)
OKLCHoklch(38.23% 0.144 267.5)
XYZxyz(7.0036, 5.2186, 26.2241)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22398E #8E7722
analogous
#226F8E #22398E #41228E
triadic
#22398E #8E2239 #398E22
tetradic
#22398E #8E226F #8E7722 #228E41
square
#22398E #8E226F #8E7722 #228E41
split-complementary
#22398E #8E4122 #6F8E22
monochromatic
#0A112B #16255D #22398E #2E4DBF #5470D6

Accessibility & contrast

On white

10.27
#22398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22398E
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22398E#FFFFFF#000000##FFFFFF
##22398E1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #22398e;
/* rgb */ color: rgb(34, 57, 142);
/* oklch */ color: oklch(38.2% 0.144 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e6fb0',
    500: '#22398e',
    950: '#000000',
  },
}
SCSS
$custom: #22398e;
$custom-light: #6e6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#22398e",
  "rgb": {
    "r": 34,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 227.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3823,
    "c": 0.14357,
    "h": 267.5
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#22398E
secondary
#BAA452
accent
#C243E4
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #22398E

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

Preview Lab → · Contrast checker → · Palette generator →

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