#2F0E5D#2F0E5D

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

Color values

HEX#2F0E5D
RGBrgb(47, 14, 93)
HSLhsl(265, 74%, 21%)
HSVhsv(265, 85%, 36%)
CMYKcmyk(49.5%, 84.9%, 0%, 63.5%)
CIE-LABlab(13.88, 34.41, -40.23)
CIE-LCHlch(13.88, 52.94, 310.54°)
OKLaboklab(27.33% 0.0548 -0.1154)
OKLCHoklch(27.33% 0.128 295.4)
XYZxyz(3.3046, 1.7086, 10.5095)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E5D #3C5D0E
analogous
#0E145D #2F0E5D #560E5D
triadic
#2F0E5D #5D2F0E #0E5D2F
tetradic
#2F0E5D #5D0E14 #3C5D0E #0E5D56
square
#2F0E5D #5D0E14 #3C5D0E #0E5D56
split-complementary
#2F0E5D #5D560E #145D0E
monochromatic
#0D041B #140628 #2F0E5D #4A1692 #651EC7

Accessibility & contrast

On white

15.65
#2F0E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0E5D
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E5D#FFFFFF#000000##FFFFFF
##2F0E5D1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#222436
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f0e5d;
/* rgb */ color: rgb(47, 14, 93);
/* oklch */ color: oklch(27.3% 0.128 295.4);
Tailwind
colors: {
  custom: {
    50: '#6d518c',
    500: '#2f0e5d',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e5d;
$custom-light: #6d518c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e5d",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 265.063,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27329,
    "c": 0.1277,
    "h": 295.4
  },
  "luminance": 0.01709
}

Semantic roles & 50–950 ramp

primary
#2F0E5D
secondary
#6C9730
accent
#F037A3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F0E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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