#22388F#22388F

#22388F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.146 H 267.8°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#22388F
RGBrgb(34, 56, 143)
HSLhsl(228, 62%, 35%)
HSVhsv(228, 76%, 56%)
CMYKcmyk(76.2%, 60.8%, 0%, 43.9%)
CIE-LABlab(27.16, 23.85, -50.62)
CIE-LCHlch(27.16, 55.96, 295.23°)
OKLaboklab(38.12% -0.0055 -0.1462)
OKLCHoklch(38.12% 0.146 267.8)
XYZxyz(7.0301, 5.1508, 26.6050)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22388F #8F7922
analogous
#226F8F #22388F #43228F
triadic
#22388F #8F2238 #388F22
tetradic
#22388F #8F226F #8F7922 #228F43
square
#22388F #8F226F #8F7922 #228F43
split-complementary
#22388F #8F4322 #6F8F22
monochromatic
#0A112C #16255E #22388F #2E4BC0 #556FD7

Accessibility & contrast

On white

10.34
#22388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#22388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22388F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22388F#FFFFFF#000000##FFFFFF
##22388F1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #22388f;
/* rgb */ color: rgb(34, 56, 143);
/* oklch */ color: oklch(38.1% 0.146 267.8);
Tailwind
colors: {
  custom: {
    50: '#6e6eb1',
    500: '#22388f',
    950: '#000000',
  },
}
SCSS
$custom: #22388f;
$custom-light: #6e6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#22388f",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 227.89,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38115,
    "c": 0.14626,
    "h": 267.8
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#22388F
secondary
#BAA552
accent
#C443E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #22388F

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

Preview Lab → · Contrast checker → · Palette generator →

#22388F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva