#2F1142#2F1142

#2F1142 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.091 H 309.5°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2F1142
RGBrgb(47, 17, 66)
HSLhsl(277, 59%, 16%)
HSVhsv(277, 74%, 26%)
CMYKcmyk(28.8%, 74.2%, 0%, 74.1%)
CIE-LABlab(11.95, 25.32, -24.83)
CIE-LCHlch(11.95, 35.46, 315.55°)
OKLaboklab(25.2% 0.0578 -0.0702)
OKLCHoklch(25.2% 0.091 309.5)
XYZxyz(2.3559, 1.3986, 5.2991)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1142 #244211
analogous
#171142 #2F1142 #42113D
triadic
#2F1142 #422F11 #11422F
tetradic
#2F1142 #421711 #244211 #113D42
square
#2F1142 #421711 #244211 #113D42
split-complementary
#2F1142 #3D4211 #114217
monochromatic
#110618 #110618 #2F1142 #521E73 #742AA3

Accessibility & contrast

On white

16.41
#2F1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1142
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1142#FFFFFF#000000##FFFFFF
##2F11421.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#092041
Tritanopia (blue-blind)
#2C1B27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1142;
/* rgb */ color: rgb(47, 17, 66);
/* oklch */ color: oklch(25.2% 0.091 309.5);
Tailwind
colors: {
  custom: {
    50: '#6a5177',
    500: '#2f1142',
    950: '#000000',
  },
}
SCSS
$custom: #2f1142;
$custom-light: #6a5177;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1142",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 276.735,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25197,
    "c": 0.09093,
    "h": 309.5
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#2F1142
secondary
#4F7C33
accent
#E24682
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1142

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

Preview Lab → · Contrast checker → · Palette generator →

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