#2F0F5D#2F0F5D

#2F0F5D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.127 H 295.2°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2F0F5D
RGBrgb(47, 15, 93)
HSLhsl(265, 72%, 21%)
HSVhsv(265, 84%, 36%)
CMYKcmyk(49.5%, 83.9%, 0%, 63.5%)
CIE-LABlab(14.04, 33.95, -39.97)
CIE-LCHlch(14.04, 52.44, 310.34°)
OKLaboklab(27.44% 0.0539 -0.1146)
OKLCHoklch(27.44% 0.127 295.2)
XYZxyz(3.3184, 1.7362, 10.5141)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F5D #3D5D0F
analogous
#0F165D #2F0F5D #560F5D
triadic
#2F0F5D #5D2F0F #0F5D2F
tetradic
#2F0F5D #5D0F16 #3D5D0F #0F5D56
square
#2F0F5D #5D0F16 #3D5D0F #0F5D56
split-complementary
#2F0F5D #5D560F #165D0F
monochromatic
#0D041A #140628 #2F0F5D #4A1792 #6420C6

Accessibility & contrast

On white

15.59
#2F0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F5D
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F5D#FFFFFF#000000##FFFFFF
##2F0F5D1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0f5d;
/* rgb */ color: rgb(47, 15, 93);
/* oklch */ color: oklch(27.4% 0.127 295.2);
Tailwind
colors: {
  custom: {
    50: '#6d528c',
    500: '#2f0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f5d;
$custom-light: #6d528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f5d",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 264.615,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2744,
    "c": 0.12665,
    "h": 295.2
  },
  "luminance": 0.01736
}

Semantic roles & 50–950 ramp

primary
#2F0F5D
secondary
#6D9631
accent
#EF39A4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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