#221834#221834

#221834 is a very dark, muted violet. Relative luminance 0.012; OKLCH L 23.7% C 0.053 H 298.7°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#221834
RGBrgb(34, 24, 52)
HSLhsl(261, 37%, 15%)
HSVhsv(261, 54%, 20%)
CMYKcmyk(34.6%, 53.8%, 0%, 79.6%)
CIE-LABlab(10.86, 12.53, -16.69)
CIE-LCHlch(10.86, 20.87, 306.90°)
OKLaboklab(23.66% 0.0257 -0.0468)
OKLCHoklch(23.66% 0.053 298.7)
XYZxyz(1.6060, 1.2413, 3.4031)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221834 #2A3418
analogous
#181C34 #221834 #301834
triadic
#221834 #342218 #183422
tetradic
#221834 #34181C #2A3418 #183430
square
#221834 #34181C #2A3418 #183430
split-complementary
#221834 #343018 #1C3418
monochromatic
#0E0A15 #0E0A15 #221834 #3D2B5E #593F88

Accessibility & contrast

On white

16.82
#221834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#221834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221834
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221834#FFFFFF#000000##FFFFFF
##2218341.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101D35
Deuteranopia (green-blind)
#121D33
Tritanopia (blue-blind)
#1E1D23
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #221834;
/* rgb */ color: rgb(34, 24, 52);
/* oklch */ color: oklch(23.7% 0.053 298.7);
Tailwind
colors: {
  custom: {
    50: '#5e556b',
    500: '#221834',
    950: '#000000',
  },
}
SCSS
$custom: #221834;
$custom-light: #5e556b;
$custom-dark: #000000;
JSON
{
  "hex": "#221834",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 52
  },
  "hsl": {
    "h": 261.429,
    "s": 36.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23662,
    "c": 0.0534,
    "h": 298.7
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#221834
secondary
#5A6A3E
accent
#CD5BA4
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040306
muted
#79787A

Preview Lab

Preview with #221834

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

Preview Lab → · Contrast checker → · Palette generator →

#221834 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva