#2F1D87#2F1D87

#2F1D87 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.164 H 280.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1D87
RGBrgb(47, 29, 135)
HSLhsl(250, 65%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(65.2%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.95, 39.64, -55.79)
CIE-LCHlch(20.95, 68.44, 305.39°)
OKLaboklab(33.61% 0.0304 -0.161)
OKLCHoklch(33.61% 0.164 280.7)
XYZxyz(5.9834, 3.2319, 23.2255)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D87 #75871D
analogous
#1D4087 #2F1D87 #641D87
triadic
#2F1D87 #872F1D #1D872F
tetradic
#2F1D87 #871D40 #75871D #1D8764
square
#2F1D87 #871D40 #75871D #1D8764
split-complementary
#2F1D87 #87641D #40871D
monochromatic
#0C0722 #1D1255 #2F1D87 #4128B9 #5F47D7

Accessibility & contrast

On white

12.76
#2F1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D87
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D87#FFFFFF#000000##FFFFFF
##2F1D871.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1d87;
/* rgb */ color: rgb(47, 29, 135);
/* oklch */ color: oklch(33.6% 0.164 280.7);
Tailwind
colors: {
  custom: {
    50: '#745cab',
    500: '#2f1d87',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d87;
$custom-light: #745cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d87",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 250.189,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.16385,
    "h": 280.7
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#2F1D87
secondary
#A6B946
accent
#E840CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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