#2F1576#2F1576

#2F1576 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.151 H 285.7°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2F1576
RGBrgb(47, 21, 118)
HSLhsl(256, 70%, 27%)
HSVhsv(256, 82%, 46%)
CMYKcmyk(60.2%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.68, 38.46, -50.38)
CIE-LCHlch(17.68, 63.38, 307.36°)
OKLaboklab(30.78% 0.0408 -0.1451)
OKLCHoklch(30.78% 0.151 285.7)
XYZxyz(4.7095, 2.4484, 17.3605)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1576 #5C7615
analogous
#152C76 #2F1576 #5F1576
triadic
#2F1576 #762F15 #15762F
tetradic
#2F1576 #76152C #5C7615 #15765F
square
#2F1576 #76152C #5C7615 #15765F
split-complementary
#2F1576 #765F15 #2C7615
monochromatic
#0A051A #1A0C42 #2F1576 #441EAA #5A2CD9

Accessibility & contrast

On white

14.10
#2F1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1576
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1576#FFFFFF#000000##FFFFFF
##2F15761.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1576;
/* rgb */ color: rgb(47, 21, 118);
/* oklch */ color: oklch(30.8% 0.151 285.7);
Tailwind
colors: {
  custom: {
    50: '#71569f',
    500: '#2f1576',
    950: '#000000',
  },
}
SCSS
$custom: #2f1576;
$custom-light: #71569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1576",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 256.082,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.15074,
    "h": 285.7
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#2F1576
secondary
#8EAC3B
accent
#ED3BBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2F1576

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

Preview Lab → · Contrast checker → · Palette generator →

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