#2F0F50#2F0F50

#2F0F50 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.111 H 301.4°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2F0F50
RGBrgb(47, 15, 80)
HSLhsl(270, 68%, 19%)
HSVhsv(270, 81%, 31%)
CMYKcmyk(41.3%, 81.3%, 0%, 68.6%)
CIE-LABlab(12.77, 30.25, -33.23)
CIE-LCHlch(12.77, 44.94, 312.31°)
OKLaboklab(26.16% 0.0578 -0.0948)
OKLCHoklch(26.16% 0.111 301.4)
XYZxyz(2.7907, 1.5252, 7.7352)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F50 #30500F
analogous
#0F1050 #2F0F50 #4F0F50
triadic
#2F0F50 #502F0F #0F502F
tetradic
#2F0F50 #500F10 #30500F #0F504F
square
#2F0F50 #500F10 #30500F #0F504F
split-complementary
#2F0F50 #504F0F #10500F
monochromatic
#0F051A #11051C #2F0F50 #4D1984 #6C22B7

Accessibility & contrast

On white

16.09
#2F0F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F0F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F50
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F50#FFFFFF#000000##FFFFFF
##2F0F501.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#281F2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0f50;
/* rgb */ color: rgb(47, 15, 80);
/* oklch */ color: oklch(26.2% 0.111 301.4);
Tailwind
colors: {
  custom: {
    50: '#6b5182',
    500: '#2f0f50',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f50;
$custom-light: #6b5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f50",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 269.538,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26159,
    "c": 0.11106,
    "h": 301.4
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#2F0F50
secondary
#5E8A31
accent
#EB3D95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F50

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

Preview Lab → · Contrast checker → · Palette generator →

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