#2F1784#2F1784

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

Color values

HEX#2F1784
RGBrgb(47, 23, 132)
HSLhsl(253, 70%, 30%)
HSVhsv(253, 83%, 52%)
CMYKcmyk(64.4%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.57, 41.74, -56.19)
CIE-LCHlch(19.57, 69.99, 306.61°)
OKLaboklab(32.55% 0.0349 -0.1621)
OKLCHoklch(32.55% 0.166 282.2)
XYZxyz(5.6422, 2.8827, 22.0844)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1784 #6C8417
analogous
#173584 #2F1784 #651784
triadic
#2F1784 #842F17 #17842F
tetradic
#2F1784 #841735 #6C8417 #178465
square
#2F1784 #841735 #6C8417 #178465
split-complementary
#2F1784 #846517 #358417
monochromatic
#0A051C #1C0E50 #2F1784 #4220B8 #5D39DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1784#FFFFFF#000000##FFFFFF
##2F17841.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)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1784;
/* rgb */ color: rgb(47, 23, 132);
/* oklch */ color: oklch(32.5% 0.166 282.2);
Tailwind
colors: {
  custom: {
    50: '#7458a9',
    500: '#2f1784',
    950: '#000000',
  },
}
SCSS
$custom: #2f1784;
$custom-light: #7458a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1784",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 253.211,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32546,
    "c": 0.1658,
    "h": 282.2
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#2F1784
secondary
#9DB83F
accent
#ED3BC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1784

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

Preview Lab → · Contrast checker → · Palette generator →

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