#2F1481#2F1481

#2F1481 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.165 H 283.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2F1481
RGBrgb(47, 20, 129)
HSLhsl(255, 73%, 29%)
HSVhsv(255, 84%, 51%)
CMYKcmyk(63.6%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.75, 42.22, -55.63)
CIE-LCHlch(18.75, 69.84, 307.20°)
OKLaboklab(31.88% 0.0376 -0.1604)
OKLCHoklch(31.88% 0.165 283.2)
XYZxyz(5.3837, 2.6893, 21.0000)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1481 #668114
analogous
#143081 #2F1481 #661481
triadic
#2F1481 #812F14 #14812F
tetradic
#2F1481 #811430 #668114 #148166
square
#2F1481 #811430 #668114 #148166
split-complementary
#2F1481 #816614 #308114
monochromatic
#0A041A #1C0C4C #2F1481 #421CB6 #5C30DF

Accessibility & contrast

On white

13.65
#2F1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1481
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1481#FFFFFF#000000##FFFFFF
##2F14811.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1481;
/* rgb */ color: rgb(47, 20, 129);
/* oklch */ color: oklch(31.9% 0.165 283.2);
Tailwind
colors: {
  custom: {
    50: '#7457a7',
    500: '#2f1481',
    950: '#000000',
  },
}
SCSS
$custom: #2f1481;
$custom-light: #7457a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1481",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 254.862,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31883,
    "c": 0.16478,
    "h": 283.2
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#2F1481
secondary
#98B63B
accent
#F038C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1481

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

Preview Lab → · Contrast checker → · Palette generator →

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