#2F1151#2F1151

#2F1151 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.110 H 300.3°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2F1151
RGBrgb(47, 17, 81)
HSLhsl(268, 65%, 19%)
HSVhsv(268, 79%, 32%)
CMYKcmyk(42%, 79%, 0%, 68.2%)
CIE-LABlab(13.23, 29.50, -33.17)
CIE-LCHlch(13.23, 44.39, 311.65°)
OKLaboklab(26.51% 0.0554 -0.0947)
OKLCHoklch(26.51% 0.11 300.3)
XYZxyz(2.8576, 1.5993, 7.9411)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1151 #335111
analogous
#111351 #2F1151 #4F1151
triadic
#2F1151 #512F11 #11512F
tetradic
#2F1151 #511113 #335111 #11514F
square
#2F1151 #511113 #335111 #11514F
split-complementary
#2F1151 #514F11 #135111
monochromatic
#0F0519 #12061E #2F1151 #4C1C84 #6A26B6

Accessibility & contrast

On white

15.91
#2F1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1151
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1151#FFFFFF#000000##FFFFFF
##2F11511.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#272130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1151;
/* rgb */ color: rgb(47, 17, 81);
/* oklch */ color: oklch(26.5% 0.110 300.3);
Tailwind
colors: {
  custom: {
    50: '#6b5282',
    500: '#2f1151',
    950: '#000000',
  },
}
SCSS
$custom: #2f1151;
$custom-light: #6b5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1151",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 268.125,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26512,
    "c": 0.10967,
    "h": 300.3
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#2F1151
secondary
#628A34
accent
#E84099
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1151

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

Preview Lab → · Contrast checker → · Palette generator →

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