#2F1D80#2F1D80

#2F1D80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.155 H 282.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1D80
RGBrgb(47, 29, 128)
HSLhsl(251, 63%, 31%)
HSVhsv(251, 77%, 50%)
CMYKcmyk(63.3%, 77.3%, 0%, 49.8%)
CIE-LABlab(20.21, 37.40, -52.60)
CIE-LCHlch(20.21, 64.54, 305.42°)
OKLaboklab(32.86% 0.0322 -0.1517)
OKLCHoklch(32.86% 0.155 282)
XYZxyz(5.5067, 3.0412, 20.7147)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D80 #6E801D
analogous
#1D3C80 #2F1D80 #601D80
triadic
#2F1D80 #802F1D #1D802F
tetradic
#2F1D80 #801D3C #6E801D #1D8060
square
#2F1D80 #801D3C #6E801D #1D8060
split-complementary
#2F1D80 #80601D #3C801D
monochromatic
#0A061C #1D124E #2F1D80 #4128B2 #5D43D4

Accessibility & contrast

On white

13.06
#2F1D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1D80
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D80#FFFFFF#000000##FFFFFF
##2F1D801.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1d80;
/* rgb */ color: rgb(47, 29, 128);
/* oklch */ color: oklch(32.9% 0.155 282.0);
Tailwind
colors: {
  custom: {
    50: '#735ba6',
    500: '#2f1d80',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d80;
$custom-light: #735ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d80",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 250.909,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32864,
    "c": 0.15508,
    "h": 282
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1D80

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

Preview Lab → · Contrast checker → · Palette generator →

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