#2F0D50#2F0D50

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

Color values

HEX#2F0D50
RGBrgb(47, 13, 80)
HSLhsl(270, 72%, 18%)
HSVhsv(270, 84%, 31%)
CMYKcmyk(41.3%, 83.7%, 0%, 68.6%)
CIE-LABlab(12.43, 31.23, -33.79)
CIE-LCHlch(12.43, 46.01, 312.75°)
OKLaboklab(25.92% 0.0599 -0.0965)
OKLCHoklch(25.92% 0.114 301.8)
XYZxyz(2.7638, 1.4714, 7.7263)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D50 #2E500D
analogous
#0E0D50 #2F0D50 #500D4F
triadic
#2F0D50 #502F0D #0D502F
tetradic
#2F0D50 #500E0D #2E500D #0D4F50
square
#2F0D50 #500E0D #2E500D #0D4F50
split-complementary
#2F0D50 #4F500D #0D500E
monochromatic
#0F041A #10041B #2F0D50 #4E1685 #6D1EB9

Accessibility & contrast

On white

16.23
#2F0D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0D50
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D50#FFFFFF#000000##FFFFFF
##2F0D501.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#281F2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0d50;
/* rgb */ color: rgb(47, 13, 80);
/* oklch */ color: oklch(25.9% 0.114 301.8);
Tailwind
colors: {
  custom: {
    50: '#6c5082',
    500: '#2f0d50',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d50;
$custom-light: #6c5082;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d50",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 270.448,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25918,
    "c": 0.11352,
    "h": 301.8
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#2F0D50
secondary
#5C8B2E
accent
#EF3993
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0D50

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

Preview Lab → · Contrast checker → · Palette generator →

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