#2C0F5E#2C0F5E

#2C0F5E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.128 H 292.3°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2C0F5E
RGBrgb(44, 15, 94)
HSLhsl(262, 72%, 21%)
HSVhsv(262, 84%, 37%)
CMYKcmyk(53.2%, 84%, 0%, 63.1%)
CIE-LABlab(13.74, 33.75, -41.14)
CIE-LCHlch(13.74, 53.21, 309.37°)
OKLaboklab(27.17% 0.0484 -0.1181)
OKLCHoklch(27.17% 0.128 292.3)
XYZxyz(3.2293, 1.6852, 10.7426)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F5E #415E0F
analogous
#0F1A5E #2C0F5E #540F5E
triadic
#2C0F5E #5E2C0F #0F5E2C
tetradic
#2C0F5E #5E0F1A #415E0F #0F5E54
square
#2C0F5E #5E0F1A #415E0F #0F5E54
split-complementary
#2C0F5E #5E540F #1A5E0F
monochromatic
#0C041A #130729 #2C0F5E #451793 #5D20C8

Accessibility & contrast

On white

15.71
#2C0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0F5E
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F5E#FFFFFF#000000##FFFFFF
##2C0F5E1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#1B2636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c0f5e;
/* rgb */ color: rgb(44, 15, 94);
/* oklch */ color: oklch(27.2% 0.128 292.3);
Tailwind
colors: {
  custom: {
    50: '#6c518c',
    500: '#2c0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f5e;
$custom-light: #6c518c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f5e",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 262.025,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27174,
    "c": 0.12769,
    "h": 292.3
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#2C0F5E
secondary
#729731
accent
#EF39AC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C0F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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