#2C0F5F#2C0F5F

#2C0F5F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.129 H 291.9°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2C0F5F
RGBrgb(44, 15, 95)
HSLhsl(262, 73%, 22%)
HSVhsv(262, 84%, 37%)
CMYKcmyk(53.7%, 84.2%, 0%, 62.7%)
CIE-LABlab(13.85, 34.05, -41.64)
CIE-LCHlch(13.85, 53.79, 309.28°)
OKLaboklab(27.28% 0.0481 -0.1196)
OKLCHoklch(27.28% 0.129 291.9)
XYZxyz(3.2745, 1.7032, 10.9805)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F5F #425F0F
analogous
#0F1A5F #2C0F5F #540F5F
triadic
#2C0F5F #5F2C0F #0F5F2C
tetradic
#2C0F5F #5F0F1A #425F0F #0F5F54
square
#2C0F5F #5F0F1A #425F0F #0F5F54
split-complementary
#2C0F5F #5F540F #1A5F0F
monochromatic
#0C041A #14072A #2C0F5F #441794 #5D20C9

Accessibility & contrast

On white

15.66
#2C0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F5F
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F5F#FFFFFF#000000##FFFFFF
##2C0F5F1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#1B2637
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c0f5f;
/* rgb */ color: rgb(44, 15, 95);
/* oklch */ color: oklch(27.3% 0.129 291.9);
Tailwind
colors: {
  custom: {
    50: '#6c518d',
    500: '#2c0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f5f;
$custom-light: #6c518d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f5f",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 261.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2728,
    "c": 0.12891,
    "h": 291.9
  },
  "luminance": 0.01703
}

Semantic roles & 50–950 ramp

primary
#2C0F5F
secondary
#739832
accent
#EF38AD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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