#2F1141#2F1141

#2F1141 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.090 H 310.2°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2F1141
RGBrgb(47, 17, 65)
HSLhsl(278, 59%, 16%)
HSVhsv(278, 74%, 25%)
CMYKcmyk(27.7%, 73.8%, 0%, 74.5%)
CIE-LABlab(11.87, 25.05, -24.25)
CIE-LCHlch(11.87, 34.87, 315.92°)
OKLaboklab(25.12% 0.0579 -0.0685)
OKLCHoklch(25.12% 0.09 310.2)
XYZxyz(2.3267, 1.3869, 5.1451)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1141 #234111
analogous
#171141 #2F1141 #41113B
triadic
#2F1141 #412F11 #11412F
tetradic
#2F1141 #411711 #234111 #113B41
square
#2F1141 #411711 #234111 #113B41
split-complementary
#2F1141 #3B4111 #114117
monochromatic
#120618 #120618 #2F1141 #521E72 #752AA2

Accessibility & contrast

On white

16.44
#2F1141 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1141
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1141#FFFFFF#000000##FFFFFF
##2F11411.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#2D1B27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1141;
/* rgb */ color: rgb(47, 17, 65);
/* oklch */ color: oklch(25.1% 0.090 310.2);
Tailwind
colors: {
  custom: {
    50: '#6a5176',
    500: '#2f1141',
    950: '#000000',
  },
}
SCSS
$custom: #2f1141;
$custom-light: #6a5176;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1141",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 65
  },
  "hsl": {
    "h": 277.5,
    "s": 58.537,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25116,
    "c": 0.08967,
    "h": 310.2
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#2F1141
secondary
#4E7B33
accent
#E24680
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1141

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

Preview Lab → · Contrast checker → · Palette generator →

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