#2F1987#2F1987

#2F1987 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.168 H 281.3°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2F1987
RGBrgb(47, 25, 135)
HSLhsl(252, 69%, 31%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(65.2%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.24, 41.69, -56.97)
CIE-LCHlch(20.24, 70.59, 306.20°)
OKLaboklab(33.11% 0.0328 -0.1644)
OKLCHoklch(33.11% 0.168 281.3)
XYZxyz(5.8917, 3.0484, 23.1949)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1987 #718719
analogous
#193A87 #2F1987 #661987
triadic
#2F1987 #872F19 #19872F
tetradic
#2F1987 #87193A #718719 #198766
square
#2F1987 #87193A #718719 #198766
split-complementary
#2F1987 #876619 #3A8719
monochromatic
#0B0620 #1D0F53 #2F1987 #4123BB #5E3FDB

Accessibility & contrast

On white

13.05
#2F1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1987
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1987#FFFFFF#000000##FFFFFF
##2F19871.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1987;
/* rgb */ color: rgb(47, 25, 135);
/* oklch */ color: oklch(33.1% 0.168 281.3);
Tailwind
colors: {
  custom: {
    50: '#755aab',
    500: '#2f1987',
    950: '#000000',
  },
}
SCSS
$custom: #2f1987;
$custom-light: #755aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1987",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 252,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3311,
    "c": 0.16763,
    "h": 281.3
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#2F1987
secondary
#A2BA41
accent
#EC3CC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1987

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

Preview Lab → · Contrast checker → · Palette generator →

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