#2F1D81#2F1D81

#2F1D81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.156 H 281.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2F1D81
RGBrgb(47, 29, 129)
HSLhsl(251, 63%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(63.6%, 77.5%, 0%, 49.4%)
CIE-LABlab(20.31, 37.73, -53.06)
CIE-LCHlch(20.31, 65.11, 305.41°)
OKLaboklab(32.97% 0.032 -0.153)
OKLCHoklch(32.97% 0.156 281.8)
XYZxyz(5.5729, 3.0676, 21.0631)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D81 #6F811D
analogous
#1D3D81 #2F1D81 #611D81
triadic
#2F1D81 #812F1D #1D812F
tetradic
#2F1D81 #811D3D #6F811D #1D8161
square
#2F1D81 #811D3D #6F811D #1D8161
split-complementary
#2F1D81 #81611D #3D811D
monochromatic
#0B071D #1D124F #2F1D81 #4128B3 #5E44D5

Accessibility & contrast

On white

13.01
#2F1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D81
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D81#FFFFFF#000000##FFFFFF
##2F1D811.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d81;
/* rgb */ color: rgb(47, 29, 129);
/* oklch */ color: oklch(33.0% 0.156 281.8);
Tailwind
colors: {
  custom: {
    50: '#735ca7',
    500: '#2f1d81',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d81;
$custom-light: #735ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d81",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 250.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32969,
    "c": 0.15633,
    "h": 281.8
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#2F1D81
secondary
#A0B446
accent
#E641C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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