#2F1986#2F1986

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

Color values

HEX#2F1986
RGBrgb(47, 25, 134)
HSLhsl(252, 69%, 31%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(64.9%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.13, 41.38, -56.52)
CIE-LCHlch(20.13, 70.05, 306.21°)
OKLaboklab(33% 0.0331 -0.1631)
OKLCHoklch(33% 0.166 281.5)
XYZxyz(5.8216, 3.0204, 22.8258)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1986 #708619
analogous
#193986 #2F1986 #651986
triadic
#2F1986 #862F19 #19862F
tetradic
#2F1986 #861939 #708619 #198665
square
#2F1986 #861939 #708619 #198665
split-complementary
#2F1986 #866519 #398619
monochromatic
#0B061F #1D0F52 #2F1986 #4123BA #5E3EDB

Accessibility & contrast

On white

13.09
#2F1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1986
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1986#FFFFFF#000000##FFFFFF
##2F19861.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1986;
/* rgb */ color: rgb(47, 25, 134);
/* oklch */ color: oklch(33.0% 0.166 281.5);
Tailwind
colors: {
  custom: {
    50: '#745aaa',
    500: '#2f1986',
    950: '#000000',
  },
}
SCSS
$custom: #2f1986;
$custom-light: #745aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1986",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 252.11,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33,
    "c": 0.16643,
    "h": 281.5
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#2F1986
secondary
#A1BA41
accent
#EB3CC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1986

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

Preview Lab → · Contrast checker → · Palette generator →

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