#2C0F51#2C0F51

#2C0F51 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.112 H 298.0°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2C0F51
RGBrgb(44, 15, 81)
HSLhsl(266, 69%, 19%)
HSVhsv(266, 81%, 32%)
CMYKcmyk(45.7%, 81.5%, 0%, 68.2%)
CIE-LABlab(12.42, 29.94, -34.50)
CIE-LCHlch(12.42, 45.68, 310.95°)
OKLaboklab(25.85% 0.0525 -0.0987)
OKLCHoklch(25.85% 0.112 298)
XYZxyz(2.6943, 1.4712, 7.9250)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F51 #34510F
analogous
#0F1351 #2C0F51 #4D0F51
triadic
#2C0F51 #512C0F #0F512C
tetradic
#2C0F51 #510F13 #34510F #0F514D
square
#2C0F51 #510F13 #34510F #0F514D
split-complementary
#2C0F51 #514D0F #13510F
monochromatic
#0E051A #10051D #2C0F51 #481985 #6422B8

Accessibility & contrast

On white

16.23
#2C0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C0F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F51
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F51#FFFFFF#000000##FFFFFF
##2C0F511.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#23202F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c0f51;
/* rgb */ color: rgb(44, 15, 81);
/* oklch */ color: oklch(25.9% 0.112 298.0);
Tailwind
colors: {
  custom: {
    50: '#6a5182',
    500: '#2c0f51',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f51;
$custom-light: #6a5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f51",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 266.364,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2585,
    "c": 0.11177,
    "h": 298
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#2C0F51
secondary
#638B31
accent
#EC3C9F
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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