#2C0742#2C0742

#2C0742 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.104 H 308.7°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2C0742
RGBrgb(44, 7, 66)
HSLhsl(278, 81%, 14%)
HSVhsv(278, 89%, 26%)
CMYKcmyk(33.3%, 89.4%, 0%, 74.1%)
CIE-LABlab(9.65, 29.71, -28.58)
CIE-LCHlch(9.65, 41.22, 316.11°)
OKLaboklab(23.46% 0.0651 -0.0812)
OKLCHoklch(23.46% 0.104 308.7)
XYZxyz(2.0979, 1.0808, 5.2513)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0742 #1D4207
analogous
#0F0742 #2C0742 #42073B
triadic
#2C0742 #422C07 #07422C
tetradic
#2C0742 #420F07 #1D4207 #073B42
square
#2C0742 #420F07 #1D4207 #073B42
split-complementary
#2C0742 #3B4207 #07420F
monochromatic
#12031C #12031C #2C0742 #510D79 #7613B1

Accessibility & contrast

On white

17.27
#2C0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2C0742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0742
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0742#FFFFFF#000000##FFFFFF
##2C07421.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#291625
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0742;
/* rgb */ color: rgb(44, 7, 66);
/* oklch */ color: oklch(23.5% 0.104 308.7);
Tailwind
colors: {
  custom: {
    50: '#684c77',
    500: '#2c0742',
    950: '#000000',
  },
}
SCSS
$custom: #2c0742;
$custom-light: #684c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0742",
  "rgb": {
    "r": 44,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 277.627,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23459,
    "c": 0.10408,
    "h": 308.7
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#2C0742
secondary
#478124
accent
#F7317B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0742

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

Preview Lab → · Contrast checker → · Palette generator →

#2C0742 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva