#2F1887#2F1887

#2F1887 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.169 H 281.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2F1887
RGBrgb(47, 24, 135)
HSLhsl(252, 70%, 31%)
HSVhsv(252, 82%, 53%)
CMYKcmyk(65.2%, 82.2%, 0%, 47.1%)
CIE-LABlab(20.07, 42.17, -57.25)
CIE-LCHlch(20.07, 71.10, 306.38°)
OKLaboklab(32.99% 0.0334 -0.1652)
OKLCHoklch(32.99% 0.169 281.4)
XYZxyz(5.8707, 3.0064, 23.1879)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1887 #708718
analogous
#183987 #2F1887 #661887
triadic
#2F1887 #872F18 #18872F
tetradic
#2F1887 #871839 #708718 #188766
square
#2F1887 #871839 #708718 #188766
split-complementary
#2F1887 #876618 #398718
monochromatic
#0B061F #1D0F53 #2F1887 #4121BB #5E3DDC

Accessibility & contrast

On white

13.11
#2F1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1887
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1887#FFFFFF#000000##FFFFFF
##2F18871.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1887;
/* rgb */ color: rgb(47, 24, 135);
/* oklch */ color: oklch(33.0% 0.169 281.4);
Tailwind
colors: {
  custom: {
    50: '#7559ab',
    500: '#2f1887',
    950: '#000000',
  },
}
SCSS
$custom: #2f1887;
$custom-light: #7559ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1887",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 252.432,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32994,
    "c": 0.16852,
    "h": 281.4
  },
  "luminance": 0.03007
}

Semantic roles & 50–950 ramp

primary
#2F1887
secondary
#A1BB40
accent
#ED3BC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1887

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

Preview Lab → · Contrast checker → · Palette generator →

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