#2F0F52#2F0F52

#2F0F52 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.113 H 300.3°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2F0F52
RGBrgb(47, 15, 82)
HSLhsl(269, 69%, 19%)
HSVhsv(269, 82%, 32%)
CMYKcmyk(42.7%, 81.7%, 0%, 67.8%)
CIE-LABlab(12.95, 30.82, -34.30)
CIE-LCHlch(12.95, 46.11, 311.94°)
OKLaboklab(26.35% 0.0573 -0.098)
OKLCHoklch(26.35% 0.113 300.3)
XYZxyz(2.8657, 1.5552, 8.1302)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F52 #32520F
analogous
#0F1152 #2F0F52 #510F52
triadic
#2F0F52 #522F0F #0F522F
tetradic
#2F0F52 #520F11 #32520F #0F5251
square
#2F0F52 #520F11 #32520F #0F5251
split-complementary
#2F0F52 #52510F #11520F
monochromatic
#0F051A #11061E #2F0F52 #4D1886 #6A22B9

Accessibility & contrast

On white

16.02
#2F0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F52
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F52#FFFFFF#000000##FFFFFF
##2F0F521.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#272030
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0f52;
/* rgb */ color: rgb(47, 15, 82);
/* oklch */ color: oklch(26.3% 0.113 300.3);
Tailwind
colors: {
  custom: {
    50: '#6c5183',
    500: '#2f0f52',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f52;
$custom-light: #6c5183;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f52",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 268.657,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26349,
    "c": 0.11348,
    "h": 300.3
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#2F0F52
secondary
#608C31
accent
#EC3C98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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