#2F1281#2F1281

#2F1281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.166 H 283.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2F1281
RGBrgb(47, 18, 129)
HSLhsl(256, 76%, 29%)
HSVhsv(256, 86%, 51%)
CMYKcmyk(63.6%, 86%, 0%, 49.4%)
CIE-LABlab(18.46, 43.08, -56.12)
CIE-LCHlch(18.46, 70.75, 307.51°)
OKLaboklab(31.68% 0.0387 -0.1618)
OKLCHoklch(31.68% 0.166 283.4)
XYZxyz(5.3498, 2.6216, 20.9887)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1281 #648112
analogous
#122D81 #2F1281 #671281
triadic
#2F1281 #812F12 #12812F
tetradic
#2F1281 #81122D #648112 #128167
square
#2F1281 #81122D #648112 #128167
split-complementary
#2F1281 #816712 #2D8112
monochromatic
#0A041B #1B0B4B #2F1281 #4319B7 #5B2CE2

Accessibility & contrast

On white

13.78
#2F1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1281
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1281#FFFFFF#000000##FFFFFF
##2F12811.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1281;
/* rgb */ color: rgb(47, 18, 129);
/* oklch */ color: oklch(31.7% 0.166 283.4);
Tailwind
colors: {
  custom: {
    50: '#7456a7',
    500: '#2f1281',
    950: '#000000',
  },
}
SCSS
$custom: #2f1281;
$custom-light: #7456a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1281",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 255.676,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31681,
    "c": 0.16638,
    "h": 283.4
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#2F1281
secondary
#96B738
accent
#F236C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1281

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

Preview Lab → · Contrast checker → · Palette generator →

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