#2F0E4D#2F0E4D

#2F0E4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.109 H 303.3°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2F0E4D
RGBrgb(47, 14, 77)
HSLhsl(271, 69%, 18%)
HSVhsv(271, 82%, 30%)
CMYKcmyk(39%, 81.8%, 0%, 69.8%)
CIE-LABlab(12.31, 29.93, -31.91)
CIE-LCHlch(12.31, 43.75, 313.16°)
OKLaboklab(25.75% 0.0596 -0.0909)
OKLCHoklch(25.75% 0.109 303.3)
XYZxyz(2.6686, 1.4542, 7.1598)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E4D #2C4D0E
analogous
#100E4D #2F0E4D #4D0E4B
triadic
#2F0E4D #4D2F0E #0E4D2F
tetradic
#2F0E4D #4D100E #2C4D0E #0E4B4D
square
#2F0E4D #4D100E #2C4D0E #0E4B4D
split-complementary
#2F0E4D #4B4D0E #0E4D10
monochromatic
#10051A #10051A #2F0E4D #4F1781 #6E21B5

Accessibility & contrast

On white

16.27
#2F0E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0E4D
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E4D#FFFFFF#000000##FFFFFF
##2F0E4D1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#291E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0e4d;
/* rgb */ color: rgb(47, 14, 77);
/* oklch */ color: oklch(25.8% 0.109 303.3);
Tailwind
colors: {
  custom: {
    50: '#6b507f',
    500: '#2f0e4d',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e4d;
$custom-light: #6b507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e4d",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 271.429,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25753,
    "c": 0.10874,
    "h": 303.3
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#2F0E4D
secondary
#59882F
accent
#EC3C90
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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