#2F1241#2F1241

#2F1241 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.088 H 309.9°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1241
RGBrgb(47, 18, 65)
HSLhsl(277, 57%, 16%)
HSVhsv(277, 72%, 25%)
CMYKcmyk(27.7%, 72.3%, 0%, 74.5%)
CIE-LABlab(12.08, 24.47, -23.91)
CIE-LCHlch(12.08, 34.21, 315.65°)
OKLaboklab(25.27% 0.0565 -0.0675)
OKLCHoklch(25.27% 0.088 309.9)
XYZxyz(2.3425, 1.4187, 5.1504)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1241 #244112
analogous
#181241 #2F1241 #41123C
triadic
#2F1241 #412F12 #12412F
tetradic
#2F1241 #411812 #244112 #123C41
square
#2F1241 #411812 #244112 #123C41
split-complementary
#2F1241 #3C4112 #124118
monochromatic
#110718 #110718 #2F1241 #521F71 #742DA1

Accessibility & contrast

On white

16.36
#2F1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F1241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1241
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1241#FFFFFF#000000##FFFFFF
##2F12411.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#0C2040
Tritanopia (blue-blind)
#2D1B27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1241;
/* rgb */ color: rgb(47, 18, 65);
/* oklch */ color: oklch(25.3% 0.088 309.9);
Tailwind
colors: {
  custom: {
    50: '#6a5276',
    500: '#2f1241',
    950: '#000000',
  },
}
SCSS
$custom: #2f1241;
$custom-light: #6a5276;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1241",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 277.021,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25268,
    "c": 0.08801,
    "h": 309.9
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#2F1241
secondary
#4F7A35
accent
#E04882
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1241

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

Preview Lab → · Contrast checker → · Palette generator →

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