#2F0E4F#2F0E4F

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

Color values

HEX#2F0E4F
RGBrgb(47, 14, 79)
HSLhsl(270, 70%, 18%)
HSVhsv(270, 82%, 31%)
CMYKcmyk(40.5%, 82.3%, 0%, 69%)
CIE-LABlab(12.50, 30.48, -32.98)
CIE-LCHlch(12.50, 44.91, 312.74°)
OKLaboklab(25.94% 0.0591 -0.0941)
OKLCHoklch(25.94% 0.111 302.1)
XYZxyz(2.7403, 1.4829, 7.5375)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E4F #2E4F0E
analogous
#0F0E4F #2F0E4F #4F0E4E
triadic
#2F0E4F #4F2F0E #0E4F2F
tetradic
#2F0E4F #4F0F0E #2E4F0E #0E4E4F
square
#2F0E4F #4F0F0E #2E4F0E #0E4E4F
split-complementary
#2F0E4F #4E4F0E #0E4F0F
monochromatic
#0F051A #10051B #2F0E4F #4E1783 #6D20B7

Accessibility & contrast

On white

16.20
#2F0E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F0E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0E4F
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E4F#FFFFFF#000000##FFFFFF
##2F0E4F1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#281F2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0e4f;
/* rgb */ color: rgb(47, 14, 79);
/* oklch */ color: oklch(25.9% 0.111 302.1);
Tailwind
colors: {
  custom: {
    50: '#6b5081',
    500: '#2f0e4f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e4f;
$custom-light: #6b5081;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e4f",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 270.462,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25941,
    "c": 0.11112,
    "h": 302.1
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#2F0E4F
secondary
#5C8A2F
accent
#ED3B93
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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