#22138A#22138A

#22138A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.179 H 274.8°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#22138A
RGBrgb(34, 19, 138)
HSLhsl(248, 76%, 31%)
HSVhsv(248, 86%, 54%)
CMYKcmyk(75.4%, 86.2%, 0%, 45.9%)
CIE-LABlab(18.54, 44.26, -61.69)
CIE-LCHlch(18.54, 75.93, 305.65°)
OKLaboklab(31.77% 0.0149 -0.1783)
OKLCHoklch(31.77% 0.179 274.8)
XYZxyz(5.4785, 2.6403, 24.2607)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22138A #7B8A13
analogous
#133F8A #22138A #5D138A
triadic
#22138A #8A2213 #138A22
tetradic
#22138A #8A133F #7B8A13 #138A5D
square
#22138A #8A133F #7B8A13 #138A5D
split-complementary
#22138A #8A5D13 #3F8A13
monochromatic
#07041E #150C54 #22138A #2F1AC0 #4A34E3

Accessibility & contrast

On white

13.74
#22138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#22138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22138A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22138A#FFFFFF#000000##FFFFFF
##22138A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22138a;
/* rgb */ color: rgb(34, 19, 138);
/* oklch */ color: oklch(31.8% 0.179 274.8);
Tailwind
colors: {
  custom: {
    50: '#7056ad',
    500: '#22138a',
    950: '#000000',
  },
}
SCSS
$custom: #22138a;
$custom-light: #7056ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22138a",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 247.563,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31765,
    "c": 0.17897,
    "h": 274.8
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#22138A
secondary
#AEBE3A
accent
#F235DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #22138A

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

Preview Lab → · Contrast checker → · Palette generator →

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