#2F1251#2F1251

#2F1251 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.108 H 300.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2F1251
RGBrgb(47, 18, 81)
HSLhsl(268, 64%, 19%)
HSVhsv(268, 78%, 32%)
CMYKcmyk(42%, 77.8%, 0%, 68.2%)
CIE-LABlab(13.42, 28.96, -32.86)
CIE-LCHlch(13.42, 43.80, 311.39°)
OKLaboklab(26.65% 0.0543 -0.0937)
OKLCHoklch(26.65% 0.108 300.1)
XYZxyz(2.8734, 1.6310, 7.9464)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1251 #345112
analogous
#121551 #2F1251 #4F1251
triadic
#2F1251 #512F12 #12512F
tetradic
#2F1251 #511215 #345112 #12514F
square
#2F1251 #511215 #345112 #12514F
split-complementary
#2F1251 #514F12 #155112
monochromatic
#0F0619 #12071F #2F1251 #4C1D83 #6928B5

Accessibility & contrast

On white

15.83
#2F1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1251
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1251#FFFFFF#000000##FFFFFF
##2F12511.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.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: #2f1251;
/* rgb */ color: rgb(47, 18, 81);
/* oklch */ color: oklch(26.6% 0.108 300.1);
Tailwind
colors: {
  custom: {
    50: '#6b5382',
    500: '#2f1251',
    950: '#000000',
  },
}
SCSS
$custom: #2f1251;
$custom-light: #6b5382;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1251",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 267.619,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26648,
    "c": 0.10832,
    "h": 300.1
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#2F1251
secondary
#638A35
accent
#E7419A
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1251

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

Preview Lab → · Contrast checker → · Palette generator →

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