#2F1352#2F1352

#2F1352 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.108 H 299.3°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2F1352
RGBrgb(47, 19, 82)
HSLhsl(267, 62%, 20%)
HSVhsv(267, 77%, 32%)
CMYKcmyk(42.7%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.70, 28.70, -33.08)
CIE-LCHlch(13.70, 43.79, 310.95°)
OKLaboklab(26.88% 0.0529 -0.0944)
OKLCHoklch(26.88% 0.108 299.3)
XYZxyz(2.9278, 1.6792, 8.1509)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1352 #365213
analogous
#131652 #2F1352 #4F1352
triadic
#2F1352 #522F13 #13522F
tetradic
#2F1352 #521316 #365213 #13524F
square
#2F1352 #521316 #365213 #13524F
split-complementary
#2F1352 #524F13 #165213
monochromatic
#0E0619 #130720 #2F1352 #4B1F84 #682AB5

Accessibility & contrast

On white

15.72
#2F1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1352
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1352#FFFFFF#000000##FFFFFF
##2F13521.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#272231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1352;
/* rgb */ color: rgb(47, 19, 82);
/* oklch */ color: oklch(26.9% 0.108 299.3);
Tailwind
colors: {
  custom: {
    50: '#6b5383',
    500: '#2f1352',
    950: '#000000',
  },
}
SCSS
$custom: #2f1352;
$custom-light: #6b5383;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1352",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 266.667,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2688,
    "c": 0.1082,
    "h": 299.3
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#2F1352
secondary
#658A36
accent
#E5429D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1352

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

Preview Lab → · Contrast checker → · Palette generator →

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