#2C0740#2C0740

#2C0740 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.102 H 310.1°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#2C0740
RGBrgb(44, 7, 64)
HSLhsl(279, 80%, 14%)
HSVhsv(279, 89%, 25%)
CMYKcmyk(31.2%, 89.1%, 0%, 74.9%)
CIE-LABlab(9.46, 29.20, -27.46)
CIE-LCHlch(9.46, 40.08, 316.76°)
OKLaboklab(23.27% 0.0657 -0.0779)
OKLCHoklch(23.27% 0.102 310.1)
XYZxyz(2.0399, 1.0576, 4.9462)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0740 #1B4007
analogous
#100740 #2C0740 #400738
triadic
#2C0740 #402C07 #07402C
tetradic
#2C0740 #401007 #1B4007 #073840
square
#2C0740 #401007 #1B4007 #073840
split-complementary
#2C0740 #384007 #074010
monochromatic
#13031C #13031C #2C0740 #520D77 #7813AE

Accessibility & contrast

On white

17.33
#2C0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2C0740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0740
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0740#FFFFFF#000000##FFFFFF
##2C07401.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#291523
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2c0740;
/* rgb */ color: rgb(44, 7, 64);
/* oklch */ color: oklch(23.3% 0.102 310.1);
Tailwind
colors: {
  custom: {
    50: '#684b75',
    500: '#2c0740',
    950: '#000000',
  },
}
SCSS
$custom: #2c0740;
$custom-light: #684b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0740",
  "rgb": {
    "r": 44,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 278.947,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23272,
    "c": 0.10189,
    "h": 310.1
  },
  "luminance": 0.01058
}

Semantic roles & 50–950 ramp

primary
#2C0740
secondary
#447F24
accent
#F73176
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0740

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

Preview Lab → · Contrast checker → · Palette generator →

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