#2F1351#2F1351

#2F1351 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.107 H 299.8°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1351
RGBrgb(47, 19, 81)
HSLhsl(267, 62%, 20%)
HSVhsv(267, 77%, 32%)
CMYKcmyk(42%, 76.5%, 0%, 68.2%)
CIE-LABlab(13.62, 28.41, -32.54)
CIE-LCHlch(13.62, 43.19, 311.12°)
OKLaboklab(26.79% 0.0531 -0.0928)
OKLCHoklch(26.79% 0.107 299.8)
XYZxyz(2.8900, 1.6641, 7.9519)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1351 #355113
analogous
#131651 #2F1351 #4E1351
triadic
#2F1351 #512F13 #13512F
tetradic
#2F1351 #511316 #355113 #13514E
square
#2F1351 #511316 #355113 #13514E
split-complementary
#2F1351 #514E13 #165113
monochromatic
#0E0619 #12071F #2F1351 #4C1F83 #692AB4

Accessibility & contrast

On white

15.76
#2F1351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1351
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1351#FFFFFF#000000##FFFFFF
##2F13511.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#272230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1351;
/* rgb */ color: rgb(47, 19, 81);
/* oklch */ color: oklch(26.8% 0.107 299.8);
Tailwind
colors: {
  custom: {
    50: '#6b5382',
    500: '#2f1351',
    950: '#000000',
  },
}
SCSS
$custom: #2f1351;
$custom-light: #6b5382;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1351",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 267.097,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26788,
    "c": 0.10693,
    "h": 299.8
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#2F1351
secondary
#648A36
accent
#E5439C
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1351

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

Preview Lab → · Contrast checker → · Palette generator →

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