#2F1981#2F1981

#2F1981 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 282.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2F1981
RGBrgb(47, 25, 129)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 51%)
CMYKcmyk(63.6%, 80.6%, 0%, 49.4%)
CIE-LABlab(19.57, 39.84, -54.28)
CIE-LCHlch(19.57, 67.33, 306.28°)
OKLaboklab(32.45% 0.0347 -0.1565)
OKLCHoklch(32.45% 0.16 282.5)
XYZxyz(5.4811, 2.8842, 21.0325)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1981 #6B8119
analogous
#193781 #2F1981 #631981
triadic
#2F1981 #812F19 #19812F
tetradic
#2F1981 #811937 #6B8119 #198163
square
#2F1981 #811937 #6B8119 #198163
split-complementary
#2F1981 #816319 #378119
monochromatic
#0A051A #1C0F4E #2F1981 #4223B4 #5D3BD9

Accessibility & contrast

On white

13.32
#2F1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1981
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1981#FFFFFF#000000##FFFFFF
##2F19811.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1981;
/* rgb */ color: rgb(47, 25, 129);
/* oklch */ color: oklch(32.5% 0.160 282.5);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2f1981',
    950: '#000000',
  },
}
SCSS
$custom: #2f1981;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1981",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 252.692,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32452,
    "c": 0.16034,
    "h": 282.5
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#2F1981
secondary
#9CB541
accent
#EA3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1981

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

Preview Lab → · Contrast checker → · Palette generator →

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