#2F1143#2F1143

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

Color values

HEX#2F1143
RGBrgb(47, 17, 67)
HSLhsl(276, 60%, 16%)
HSVhsv(276, 75%, 26%)
CMYKcmyk(29.9%, 74.6%, 0%, 73.7%)
CIE-LABlab(12.03, 25.59, -25.41)
CIE-LCHlch(12.03, 36.06, 315.20°)
OKLaboklab(25.28% 0.0578 -0.0718)
OKLCHoklch(25.28% 0.092 308.8)
XYZxyz(2.3857, 1.4105, 5.4557)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1143 #254311
analogous
#161143 #2F1143 #43113E
triadic
#2F1143 #432F11 #11432F
tetradic
#2F1143 #431611 #254311 #113E43
square
#2F1143 #431611 #254311 #113E43
split-complementary
#2F1143 #3E4311 #114316
monochromatic
#110618 #110618 #2F1143 #511D74 #732AA5

Accessibility & contrast

On white

16.38
#2F1143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1143
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1143#FFFFFF#000000##FFFFFF
##2F11431.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#082042
Tritanopia (blue-blind)
#2C1B28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1143;
/* rgb */ color: rgb(47, 17, 67);
/* oklch */ color: oklch(25.3% 0.092 308.8);
Tailwind
colors: {
  custom: {
    50: '#6a5177',
    500: '#2f1143',
    950: '#000000',
  },
}
SCSS
$custom: #2f1143;
$custom-light: #6a5177;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1143",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 67
  },
  "hsl": {
    "h": 276,
    "s": 59.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25279,
    "c": 0.09218,
    "h": 308.8
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#2F1143
secondary
#517D33
accent
#E34584
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1143

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

Preview Lab → · Contrast checker → · Palette generator →

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