#2F1353#2F1353

#2F1353 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.109 H 298.8°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1353
RGBrgb(47, 19, 83)
HSLhsl(266, 63%, 20%)
HSVhsv(266, 77%, 33%)
CMYKcmyk(43.4%, 77.1%, 0%, 67.5%)
CIE-LABlab(13.80, 28.99, -33.61)
CIE-LCHlch(13.80, 44.38, 310.78°)
OKLaboklab(26.97% 0.0527 -0.096)
OKLCHoklch(26.97% 0.109 298.8)
XYZxyz(2.9661, 1.6946, 8.3528)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1353 #375313
analogous
#131753 #2F1353 #4F1353
triadic
#2F1353 #532F13 #13532F
tetradic
#2F1353 #531317 #375313 #13534F
square
#2F1353 #531317 #375313 #13534F
split-complementary
#2F1353 #534F13 #175313
monochromatic
#0E0619 #130821 #2F1353 #4B1E85 #672AB7

Accessibility & contrast

On white

15.68
#2F1353 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1353 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1353
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1353#FFFFFF#000000##FFFFFF
##2F13531.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#262331
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1353;
/* rgb */ color: rgb(47, 19, 83);
/* oklch */ color: oklch(27.0% 0.109 298.8);
Tailwind
colors: {
  custom: {
    50: '#6c5384',
    500: '#2f1353',
    950: '#000000',
  },
}
SCSS
$custom: #2f1353;
$custom-light: #6c5384;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1353",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 83
  },
  "hsl": {
    "h": 266.25,
    "s": 62.745,
    "l": 20
  },
  "oklch": {
    "l": 0.26972,
    "c": 0.10947,
    "h": 298.8
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#2F1353
secondary
#668B36
accent
#E6429E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1353

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

Preview Lab → · Contrast checker → · Palette generator →

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