#2C0F52#2C0F52

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

Color values

HEX#2C0F52
RGBrgb(44, 15, 82)
HSLhsl(266, 69%, 19%)
HSVhsv(266, 82%, 32%)
CMYKcmyk(46.3%, 81.7%, 0%, 67.8%)
CIE-LABlab(12.52, 30.23, -35.02)
CIE-LCHlch(12.52, 46.27, 310.80°)
OKLaboklab(25.95% 0.0522 -0.1002)
OKLCHoklch(25.95% 0.113 297.5)
XYZxyz(2.7321, 1.4863, 8.1239)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F52 #35520F
analogous
#0F1452 #2C0F52 #4E0F52
triadic
#2C0F52 #522C0F #0F522C
tetradic
#2C0F52 #520F14 #35520F #0F524E
square
#2C0F52 #520F14 #35520F #0F524E
split-complementary
#2C0F52 #524E0F #14520F
monochromatic
#0E051A #10061E #2C0F52 #481886 #6422B9

Accessibility & contrast

On white

16.19
#2C0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F52
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F52#FFFFFF#000000##FFFFFF
##2C0F521.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#222130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c0f52;
/* rgb */ color: rgb(44, 15, 82);
/* oklch */ color: oklch(25.9% 0.113 297.5);
Tailwind
colors: {
  custom: {
    50: '#6a5183',
    500: '#2c0f52',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f52;
$custom-light: #6a5183;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f52",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 265.97,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25948,
    "c": 0.11301,
    "h": 297.5
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#2C0F52
secondary
#658C31
accent
#EC3CA0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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