#2F1381#2F1381

#2F1381 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.166 H 283.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2F1381
RGBrgb(47, 19, 129)
HSLhsl(255, 74%, 29%)
HSVhsv(255, 85%, 51%)
CMYKcmyk(63.6%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.60, 42.66, -55.88)
CIE-LCHlch(18.60, 70.30, 307.36°)
OKLaboklab(31.78% 0.0382 -0.1611)
OKLCHoklch(31.78% 0.166 283.3)
XYZxyz(5.3664, 2.6547, 20.9942)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1381 #658113
analogous
#132E81 #2F1381 #661381
triadic
#2F1381 #812F13 #13812F
tetradic
#2F1381 #81132E #658113 #138166
square
#2F1381 #81132E #658113 #138166
split-complementary
#2F1381 #816613 #2E8113
monochromatic
#0A041B #1C0B4C #2F1381 #421BB6 #5B2EE0

Accessibility & contrast

On white

13.72
#2F1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1381
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1381#FFFFFF#000000##FFFFFF
##2F13811.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1381;
/* rgb */ color: rgb(47, 19, 129);
/* oklch */ color: oklch(31.8% 0.166 283.3);
Tailwind
colors: {
  custom: {
    50: '#7456a7',
    500: '#2f1381',
    950: '#000000',
  },
}
SCSS
$custom: #2f1381;
$custom-light: #7456a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1381",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 255.273,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.1656,
    "h": 283.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#2F1381
secondary
#97B63A
accent
#F137C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1381

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

Preview Lab → · Contrast checker → · Palette generator →

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