#22138C#22138C

#22138C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.181 H 274.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#22138C
RGBrgb(34, 19, 140)
HSLhsl(247, 76%, 31%)
HSVhsv(247, 86%, 55%)
CMYKcmyk(75.7%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.79, 44.87, -62.53)
CIE-LCHlch(18.79, 76.96, 305.66°)
OKLaboklab(32.01% 0.0142 -0.1808)
OKLCHoklch(32.01% 0.181 274.5)
XYZxyz(5.6246, 2.6987, 25.0303)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22138C #7D8C13
analogous
#13408C #22138C #5E138C
triadic
#22138C #8C2213 #138C22
tetradic
#22138C #8C1340 #7D8C13 #138C5E
square
#22138C #8C1340 #7D8C13 #138C5E
split-complementary
#22138C #8C5E13 #408C13
monochromatic
#080420 #150C56 #22138C #2F1AC2 #4B36E4

Accessibility & contrast

On white

13.64
#22138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#22138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22138C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22138C#FFFFFF#000000##FFFFFF
##22138C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22138c;
/* rgb */ color: rgb(34, 19, 140);
/* oklch */ color: oklch(32.0% 0.181 274.5);
Tailwind
colors: {
  custom: {
    50: '#7156af',
    500: '#22138c',
    950: '#000000',
  },
}
SCSS
$custom: #22138c;
$custom-light: #7156af;
$custom-dark: #000000;
JSON
{
  "hex": "#22138c",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 247.438,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32012,
    "c": 0.18132,
    "h": 274.5
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#22138C
secondary
#B0C03B
accent
#F335DB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #22138C

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

Preview Lab → · Contrast checker → · Palette generator →

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