#2C0F5C#2C0F5C

#2C0F5C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.125 H 293.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#2C0F5C
RGBrgb(44, 15, 92)
HSLhsl(263, 72%, 21%)
HSVhsv(263, 84%, 36%)
CMYKcmyk(52.2%, 83.7%, 0%, 63.9%)
CIE-LABlab(13.53, 33.17, -40.14)
CIE-LCHlch(13.53, 52.07, 309.56°)
OKLaboklab(26.96% 0.0491 -0.1152)
OKLCHoklch(26.96% 0.125 293.1)
XYZxyz(3.1408, 1.6497, 10.2761)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F5C #3F5C0F
analogous
#0F185C #2C0F5C #520F5C
triadic
#2C0F5C #5C2C0F #0F5C2C
tetradic
#2C0F5C #5C0F18 #3F5C0F #0F5C52
square
#2C0F5C #5C0F18 #3F5C0F #0F5C52
split-complementary
#2C0F5C #5C520F #185C0F
monochromatic
#0D041A #130627 #2C0F5C #451891 #5E20C5

Accessibility & contrast

On white

15.79
#2C0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F5C
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F5C#FFFFFF#000000##FFFFFF
##2C0F5C1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#1D2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c0f5c;
/* rgb */ color: rgb(44, 15, 92);
/* oklch */ color: oklch(27.0% 0.125 293.1);
Tailwind
colors: {
  custom: {
    50: '#6b518b',
    500: '#2c0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f5c;
$custom-light: #6b518b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f5c",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 262.597,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26964,
    "c": 0.12526,
    "h": 293.1
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#2C0F5C
secondary
#709531
accent
#EF39AA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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