#22138D#22138D

#22138D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.182 H 274.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#22138D
RGBrgb(34, 19, 141)
HSLhsl(247, 76%, 31%)
HSVhsv(247, 87%, 55%)
CMYKcmyk(75.9%, 86.5%, 0%, 44.7%)
CIE-LABlab(18.92, 45.17, -62.94)
CIE-LCHlch(18.92, 77.48, 305.67°)
OKLaboklab(32.14% 0.0139 -0.182)
OKLCHoklch(32.14% 0.182 274.4)
XYZxyz(5.6987, 2.7283, 25.4204)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22138D #7E8D13
analogous
#13418D #22138D #5F138D
triadic
#22138D #8D2213 #138D22
tetradic
#22138D #8D1341 #7E8D13 #138D5F
square
#22138D #8D1341 #7E8D13 #138D5F
split-complementary
#22138D #8D5F13 #418D13
monochromatic
#080421 #150C57 #22138D #2F1AC3 #4C36E4

Accessibility & contrast

On white

13.59
#22138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#22138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22138D
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22138D#FFFFFF#000000##FFFFFF
##22138D1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22138d;
/* rgb */ color: rgb(34, 19, 141);
/* oklch */ color: oklch(32.1% 0.182 274.4);
Tailwind
colors: {
  custom: {
    50: '#7156b0',
    500: '#22138d',
    950: '#000000',
  },
}
SCSS
$custom: #22138d;
$custom-light: #7156b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22138d",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 247.377,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32135,
    "c": 0.18249,
    "h": 274.4
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#22138D
secondary
#B1C13B
accent
#F335DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22138D

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

Preview Lab → · Contrast checker → · Palette generator →

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