#2C0E51#2C0E51

#2C0E51 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.113 H 298.3°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2C0E51
RGBrgb(44, 14, 81)
HSLhsl(267, 71%, 19%)
HSVhsv(267, 83%, 32%)
CMYKcmyk(45.7%, 82.7%, 0%, 68.2%)
CIE-LABlab(12.24, 30.45, -34.79)
CIE-LCHlch(12.24, 46.23, 311.19°)
OKLaboklab(25.72% 0.0535 -0.0995)
OKLCHoklch(25.72% 0.113 298.3)
XYZxyz(2.6806, 1.4436, 7.9204)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0E51 #33510E
analogous
#0E1151 #2C0E51 #4D0E51
triadic
#2C0E51 #512C0E #0E512C
tetradic
#2C0E51 #510E11 #33510E #0E514D
square
#2C0E51 #510E11 #33510E #0E514D
split-complementary
#2C0E51 #514D0E #11510E
monochromatic
#0E051A #10051D #2C0E51 #481785 #6520B9

Accessibility & contrast

On white

16.29
#2C0E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0E51
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0E51#FFFFFF#000000##FFFFFF
##2C0E511.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0e51;
/* rgb */ color: rgb(44, 14, 81);
/* oklch */ color: oklch(25.7% 0.113 298.3);
Tailwind
colors: {
  custom: {
    50: '#6a5082',
    500: '#2c0e51',
    950: '#000000',
  },
}
SCSS
$custom: #2c0e51;
$custom-light: #6a5082;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0e51",
  "rgb": {
    "r": 44,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 266.866,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25724,
    "c": 0.113,
    "h": 298.3
  },
  "luminance": 0.01444
}

Semantic roles & 50–950 ramp

primary
#2C0E51
secondary
#628C2F
accent
#ED3A9D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0E51

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

Preview Lab → · Contrast checker → · Palette generator →

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