#2C0F42#2C0F42

#2C0F42 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.093 H 306.8°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#2C0F42
RGBrgb(44, 15, 66)
HSLhsl(274, 63%, 16%)
HSVhsv(274, 77%, 26%)
CMYKcmyk(33.3%, 77.3%, 0%, 74.1%)
CIE-LABlab(11.07, 25.67, -26.28)
CIE-LCHlch(11.07, 36.73, 314.33°)
OKLaboklab(24.46% 0.0557 -0.0745)
OKLCHoklch(24.46% 0.093 306.8)
XYZxyz(2.1927, 1.2705, 5.2829)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F42 #25420F
analogous
#120F42 #2C0F42 #420F3E
triadic
#2C0F42 #422C0F #0F422C
tetradic
#2C0F42 #42120F #25420F #0F3E42
square
#2C0F42 #42120F #25420F #0F3E42
split-complementary
#2C0F42 #3E420F #0F4212
monochromatic
#110619 #110619 #2C0F42 #4D1A74 #6E26A6

Accessibility & contrast

On white

16.75
#2C0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0F42
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F42#FFFFFF#000000##FFFFFF
##2C0F421.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#281A27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0f42;
/* rgb */ color: rgb(44, 15, 66);
/* oklch */ color: oklch(24.5% 0.093 306.8);
Tailwind
colors: {
  custom: {
    50: '#685077',
    500: '#2c0f42',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f42;
$custom-light: #685077;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f42",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 274.118,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24464,
    "c": 0.09305,
    "h": 306.8
  },
  "luminance": 0.0127
}

Semantic roles & 50–950 ramp

primary
#2C0F42
secondary
#517C30
accent
#E64289
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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