#2F1D82#2F1D82

#2F1D82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.158 H 281.6°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2F1D82
RGBrgb(47, 29, 130)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(63.8%, 77.7%, 0%, 49%)
CIE-LABlab(20.42, 38.04, -53.52)
CIE-LCHlch(20.42, 65.66, 305.41°)
OKLaboklab(33.07% 0.0317 -0.1544)
OKLCHoklch(33.07% 0.158 281.6)
XYZxyz(5.6397, 3.0944, 21.4148)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D82 #70821D
analogous
#1D3D82 #2F1D82 #611D82
triadic
#2F1D82 #822F1D #1D822F
tetradic
#2F1D82 #821D3D #70821D #1D8261
square
#2F1D82 #821D3D #70821D #1D8261
split-complementary
#2F1D82 #82611D #3D821D
monochromatic
#0B071E #1D1250 #2F1D82 #4128B4 #5E44D5

Accessibility & contrast

On white

12.97
#2F1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D82
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D82#FFFFFF#000000##FFFFFF
##2F1D821.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1d82;
/* rgb */ color: rgb(47, 29, 130);
/* oklch */ color: oklch(33.1% 0.158 281.6);
Tailwind
colors: {
  custom: {
    50: '#735ca7',
    500: '#2f1d82',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d82;
$custom-light: #735ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d82",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 250.693,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33075,
    "c": 0.1576,
    "h": 281.6
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#2F1D82
secondary
#A1B546
accent
#E741C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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