#2F1341#2F1341

#2F1341 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.086 H 309.6°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1341
RGBrgb(47, 19, 65)
HSLhsl(277, 55%, 16%)
HSVhsv(277, 71%, 25%)
CMYKcmyk(27.7%, 70.8%, 0%, 74.5%)
CIE-LABlab(12.30, 23.87, -23.57)
CIE-LCHlch(12.30, 33.55, 315.37°)
OKLaboklab(25.42% 0.0551 -0.0664)
OKLCHoklch(25.42% 0.086 309.6)
XYZxyz(2.3591, 1.4518, 5.1559)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1341 #254113
analogous
#181341 #2F1341 #41133C
triadic
#2F1341 #412F13 #13412F
tetradic
#2F1341 #411813 #254113 #133C41
square
#2F1341 #411813 #254113 #133C41
split-complementary
#2F1341 #3C4113 #134118
monochromatic
#110718 #110718 #2F1341 #512170 #732FA0

Accessibility & contrast

On white

16.27
#2F1341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1341
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1341#FFFFFF#000000##FFFFFF
##2F13411.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F42
Deuteranopia (green-blind)
#0D2140
Tritanopia (blue-blind)
#2D1C27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1341;
/* rgb */ color: rgb(47, 19, 65);
/* oklch */ color: oklch(25.4% 0.086 309.6);
Tailwind
colors: {
  custom: {
    50: '#695276',
    500: '#2f1341',
    950: '#000000',
  },
}
SCSS
$custom: #2f1341;
$custom-light: #695276;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1341",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 65
  },
  "hsl": {
    "h": 276.522,
    "s": 54.762,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25425,
    "c": 0.0863,
    "h": 309.6
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#2F1341
secondary
#517A36
accent
#DE4A84
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1341

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

Preview Lab → · Contrast checker → · Palette generator →

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