#220742#220742

#220742 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.102 H 298.1°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#220742
RGBrgb(34, 7, 66)
HSLhsl(267, 81%, 14%)
HSVhsv(267, 89%, 26%)
CMYKcmyk(48.5%, 89.4%, 0%, 74.1%)
CIE-LABlab(8.00, 27.80, -31.34)
CIE-LCHlch(8.00, 41.90, 311.57°)
OKLaboklab(21.96% 0.0479 -0.0897)
OKLCHoklch(21.96% 0.102 298.1)
XYZxyz(1.7188, 0.8854, 5.2335)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220742 #274207
analogous
#070942 #220742 #400742
triadic
#220742 #422207 #074222
tetradic
#220742 #420709 #274207 #074240
square
#220742 #420709 #274207 #074240
split-complementary
#220742 #424007 #094207
monochromatic
#0E031C #0E031C #220742 #3F0D79 #5B13B1

Accessibility & contrast

On white

17.84
#220742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#220742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220742
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220742#FFFFFF#000000##FFFFFF
##2207421.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#1A1725
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #220742;
/* rgb */ color: rgb(34, 7, 66);
/* oklch */ color: oklch(22.0% 0.102 298.1);
Tailwind
colors: {
  custom: {
    50: '#614a77',
    500: '#220742',
    950: '#000000',
  },
}
SCSS
$custom: #220742;
$custom-light: #614a77;
$custom-dark: #000000;
JSON
{
  "hex": "#220742",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 267.458,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2196,
    "c": 0.10174,
    "h": 298.1
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#220742
secondary
#568124
accent
#F7319C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #220742

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

Preview Lab → · Contrast checker → · Palette generator →

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