#2C0F40#2C0F40

#2C0F40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.091 H 308.2°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#2C0F40
RGBrgb(44, 15, 64)
HSLhsl(276, 62%, 15%)
HSVhsv(276, 77%, 25%)
CMYKcmyk(31.2%, 76.6%, 0%, 74.9%)
CIE-LABlab(10.90, 25.12, -25.13)
CIE-LCHlch(10.90, 35.53, 314.98°)
OKLaboklab(24.29% 0.056 -0.0711)
OKLCHoklch(24.29% 0.091 308.2)
XYZxyz(2.1348, 1.2473, 4.9778)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F40 #23400F
analogous
#130F40 #2C0F40 #400F3B
triadic
#2C0F40 #402C0F #0F402C
tetradic
#2C0F40 #40130F #23400F #0F3B40
square
#2C0F40 #40130F #23400F #0F3B40
split-complementary
#2C0F40 #3B400F #0F4013
monochromatic
#110619 #110619 #2C0F40 #4E1B72 #7026A3

Accessibility & contrast

On white

16.81
#2C0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2C0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F40
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F40#FFFFFF#000000##FFFFFF
##2C0F401.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#291A26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c0f40;
/* rgb */ color: rgb(44, 15, 64);
/* oklch */ color: oklch(24.3% 0.091 308.2);
Tailwind
colors: {
  custom: {
    50: '#675075',
    500: '#2c0f40',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f40;
$custom-light: #675075;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f40",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 275.51,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24293,
    "c": 0.09054,
    "h": 308.2
  },
  "luminance": 0.01247
}

Semantic roles & 50–950 ramp

primary
#2C0F40
secondary
#4F7A30
accent
#E54385
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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