#2F1376#2F1376

#2F1376 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.153 H 286.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2F1376
RGBrgb(47, 19, 118)
HSLhsl(257, 72%, 27%)
HSVhsv(257, 84%, 46%)
CMYKcmyk(60.2%, 83.9%, 0%, 53.7%)
CIE-LABlab(17.36, 39.41, -50.91)
CIE-LCHlch(17.36, 64.38, 307.74°)
OKLaboklab(30.55% 0.0422 -0.1467)
OKLCHoklch(30.55% 0.153 286)
XYZxyz(4.6742, 2.3778, 17.3487)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1376 #5A7613
analogous
#132876 #2F1376 #611376
triadic
#2F1376 #762F13 #13762F
tetradic
#2F1376 #761328 #5A7613 #137661
square
#2F1376 #761328 #5A7613 #137661
split-complementary
#2F1376 #766113 #287613
monochromatic
#0A041A #1A0B41 #2F1376 #441BAB #5A27DC

Accessibility & contrast

On white

14.23
#2F1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1376
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1376#FFFFFF#000000##FFFFFF
##2F13761.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#093145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1376;
/* rgb */ color: rgb(47, 19, 118);
/* oklch */ color: oklch(30.6% 0.153 286.0);
Tailwind
colors: {
  custom: {
    50: '#72559f',
    500: '#2f1376',
    950: '#000000',
  },
}
SCSS
$custom: #2f1376;
$custom-light: #72559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1376",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 256.97,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30551,
    "c": 0.1526,
    "h": 286
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#2F1376
secondary
#8CAC39
accent
#EF39BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2F1376

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

Preview Lab → · Contrast checker → · Palette generator →

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