#2F0F5F#2F0F5F

#2F0F5F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.129 H 294.4°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2F0F5F
RGBrgb(47, 15, 95)
HSLhsl(264, 73%, 22%)
HSVhsv(264, 84%, 37%)
CMYKcmyk(50.5%, 84.2%, 0%, 62.7%)
CIE-LABlab(14.24, 34.52, -40.97)
CIE-LCHlch(14.24, 53.57, 310.12°)
OKLaboklab(27.65% 0.0532 -0.1175)
OKLCHoklch(27.65% 0.129 294.4)
XYZxyz(3.4081, 1.7721, 10.9867)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F5F #3F5F0F
analogous
#0F175F #2F0F5F #570F5F
triadic
#2F0F5F #5F2F0F #0F5F2F
tetradic
#2F0F5F #5F0F17 #3F5F0F #0F5F57
square
#2F0F5F #5F0F17 #3F5F0F #0F5F57
split-complementary
#2F0F5F #5F570F #175F0F
monochromatic
#0D041A #15072A #2F0F5F #491794 #6320C9

Accessibility & contrast

On white

15.51
#2F0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F5F
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F5F#FFFFFF#000000##FFFFFF
##2F0F5F1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#212637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f0f5f;
/* rgb */ color: rgb(47, 15, 95);
/* oklch */ color: oklch(27.6% 0.129 294.4);
Tailwind
colors: {
  custom: {
    50: '#6e528d',
    500: '#2f0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f5f;
$custom-light: #6e528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f5f",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 264,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27646,
    "c": 0.12902,
    "h": 294.4
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#2F0F5F
secondary
#6F9832
accent
#EF38A6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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