#2F1781#2F1781

#2F1781 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 282.8°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1781
RGBrgb(47, 23, 129)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(63.6%, 82.2%, 0%, 49.4%)
CIE-LABlab(19.23, 40.83, -54.84)
CIE-LCHlch(19.23, 68.37, 306.67°)
OKLaboklab(32.21% 0.0359 -0.1582)
OKLCHoklch(32.21% 0.162 282.8)
XYZxyz(5.4399, 2.8017, 21.0187)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1781 #698117
analogous
#173481 #2F1781 #641781
triadic
#2F1781 #812F17 #17812F
tetradic
#2F1781 #811734 #698117 #178164
square
#2F1781 #811734 #698117 #178164
split-complementary
#2F1781 #816417 #348117
monochromatic
#09051A #1C0E4D #2F1781 #4220B5 #5C37DB

Accessibility & contrast

On white

13.46
#2F1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1781
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1781#FFFFFF#000000##FFFFFF
##2F17811.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1781;
/* rgb */ color: rgb(47, 23, 129);
/* oklch */ color: oklch(32.2% 0.162 282.8);
Tailwind
colors: {
  custom: {
    50: '#7358a7',
    500: '#2f1781',
    950: '#000000',
  },
}
SCSS
$custom: #2f1781;
$custom-light: #7358a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1781",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 253.585,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32214,
    "c": 0.16219,
    "h": 282.8
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#2F1781
secondary
#9AB53E
accent
#ED3BC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1781

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

Preview Lab → · Contrast checker → · Palette generator →

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