#22137F#22137F

#22137F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.166 H 276.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#22137F
RGBrgb(34, 19, 127)
HSLhsl(248, 74%, 29%)
HSVhsv(248, 85%, 50%)
CMYKcmyk(73.2%, 85%, 0%, 50.2%)
CIE-LABlab(17.17, 40.84, -57.03)
CIE-LCHlch(17.17, 70.14, 305.61°)
OKLaboklab(30.42% 0.0183 -0.1648)
OKLCHoklch(30.42% 0.166 276.3)
XYZxyz(4.7221, 2.3377, 20.2769)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22137F #707F13
analogous
#133A7F #22137F #58137F
triadic
#22137F #7F2213 #137F22
tetradic
#22137F #7F133A #707F13 #137F58
square
#22137F #7F133A #707F13 #137F58
split-complementary
#22137F #7F5813 #3A7F13
monochromatic
#07041B #140B4A #22137F #301BB4 #462DE0

Accessibility & contrast

On white

14.31
#22137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#22137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22137F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22137F#FFFFFF#000000##FFFFFF
##22137F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22137f;
/* rgb */ color: rgb(34, 19, 127);
/* oklch */ color: oklch(30.4% 0.166 276.3);
Tailwind
colors: {
  custom: {
    50: '#6e55a5',
    500: '#22137f',
    950: '#000000',
  },
}
SCSS
$custom: #22137f;
$custom-light: #6e55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22137f",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 248.333,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30424,
    "c": 0.16582,
    "h": 276.3
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#22137F
secondary
#A3B439
accent
#F137D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22137F

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

Preview Lab → · Contrast checker → · Palette generator →

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