#2F1D7D#2F1D7D

#2F1D7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 282.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1D7D
RGBrgb(47, 29, 125)
HSLhsl(251, 62%, 30%)
HSVhsv(251, 77%, 49%)
CMYKcmyk(62.4%, 76.8%, 0%, 51%)
CIE-LABlab(19.90, 36.44, -51.21)
CIE-LCHlch(19.90, 62.85, 305.44°)
OKLaboklab(32.55% 0.033 -0.1476)
OKLCHoklch(32.55% 0.151 282.6)
XYZxyz(5.3122, 2.9634, 19.6901)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D7D #6B7D1D
analogous
#1D3B7D #2F1D7D #5F1D7D
triadic
#2F1D7D #7D2F1D #1D7D2F
tetradic
#2F1D7D #7D1D3B #6B7D1D #1D7D5F
square
#2F1D7D #7D1D3B #6B7D1D #1D7D5F
split-complementary
#2F1D7D #7D5F1D #3B7D1D
monochromatic
#0A061A #1C114B #2F1D7D #4229AF #5D41D3

Accessibility & contrast

On white

13.18
#2F1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D7D
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D7D#FFFFFF#000000##FFFFFF
##2F1D7D1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1d7d;
/* rgb */ color: rgb(47, 29, 125);
/* oklch */ color: oklch(32.6% 0.151 282.6);
Tailwind
colors: {
  custom: {
    50: '#725ba4',
    500: '#2f1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d7d;
$custom-light: #725ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d7d",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 251.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3255,
    "c": 0.15127,
    "h": 282.6
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#2F1D7D
secondary
#9CB145
accent
#E542C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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