#2F1342#2F1342

#2F1342 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.088 H 308.9°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1342
RGBrgb(47, 19, 66)
HSLhsl(276, 55%, 17%)
HSVhsv(276, 71%, 26%)
CMYKcmyk(28.8%, 71.2%, 0%, 74.1%)
CIE-LABlab(12.37, 24.15, -24.15)
CIE-LCHlch(12.37, 34.15, 315.00°)
OKLaboklab(25.5% 0.055 -0.0682)
OKLCHoklch(25.5% 0.088 308.9)
XYZxyz(2.3883, 1.4635, 5.3099)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1342 #264213
analogous
#181342 #2F1342 #42133E
triadic
#2F1342 #422F13 #13422F
tetradic
#2F1342 #421813 #264213 #133E42
square
#2F1342 #421813 #264213 #133E42
split-complementary
#2F1342 #3E4213 #134218
monochromatic
#110718 #110718 #2F1342 #512172 #732EA1

Accessibility & contrast

On white

16.25
#2F1342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1342
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1342#FFFFFF#000000##FFFFFF
##2F13421.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#0C2141
Tritanopia (blue-blind)
#2C1C28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1342;
/* rgb */ color: rgb(47, 19, 66);
/* oklch */ color: oklch(25.5% 0.088 308.9);
Tailwind
colors: {
  custom: {
    50: '#6a5277',
    500: '#2f1342',
    950: '#000000',
  },
}
SCSS
$custom: #2f1342;
$custom-light: #6a5277;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1342",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 275.745,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25504,
    "c": 0.0876,
    "h": 308.9
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#2F1342
secondary
#527B36
accent
#DF4986
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1342

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

Preview Lab → · Contrast checker → · Palette generator →

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