#2F1D7F#2F1D7F

#2F1D7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.154 H 282.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2F1D7F
RGBrgb(47, 29, 127)
HSLhsl(251, 63%, 31%)
HSVhsv(251, 77%, 50%)
CMYKcmyk(63%, 77.2%, 0%, 50.2%)
CIE-LABlab(20.10, 37.08, -52.14)
CIE-LCHlch(20.10, 63.98, 305.42°)
OKLaboklab(32.76% 0.0325 -0.1503)
OKLCHoklch(32.76% 0.154 282.2)
XYZxyz(5.4412, 3.0150, 20.3698)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D7F #6D7F1D
analogous
#1D3C7F #2F1D7F #601D7F
triadic
#2F1D7F #7F2F1D #1D7F2F
tetradic
#2F1D7F #7F1D3C #6D7F1D #1D7F60
square
#2F1D7F #7F1D3C #6D7F1D #1D7F60
split-complementary
#2F1D7F #7F601D #3C7F1D
monochromatic
#0A061B #1D124D #2F1D7F #4128B1 #5D42D4

Accessibility & contrast

On white

13.10
#2F1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D7F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D7F#FFFFFF#000000##FFFFFF
##2F1D7F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1d7f;
/* rgb */ color: rgb(47, 29, 127);
/* oklch */ color: oklch(32.8% 0.154 282.2);
Tailwind
colors: {
  custom: {
    50: '#725ba5',
    500: '#2f1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d7f;
$custom-light: #725ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d7f",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 251.02,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32759,
    "c": 0.15381,
    "h": 282.2
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#2F1D7F
secondary
#9EB245
accent
#E642C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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