#2F1886#2F1886

#2F1886 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.167 H 281.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2F1886
RGBrgb(47, 24, 134)
HSLhsl(253, 70%, 31%)
HSVhsv(253, 82%, 53%)
CMYKcmyk(64.9%, 82.1%, 0%, 47.5%)
CIE-LABlab(19.96, 41.87, -56.80)
CIE-LCHlch(19.96, 70.57, 306.39°)
OKLaboklab(32.88% 0.0337 -0.1639)
OKLCHoklch(32.88% 0.167 281.6)
XYZxyz(5.8006, 2.9784, 22.8188)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1886 #6F8618
analogous
#183886 #2F1886 #661886
triadic
#2F1886 #862F18 #18862F
tetradic
#2F1886 #861838 #6F8618 #188666
square
#2F1886 #861838 #6F8618 #188666
split-complementary
#2F1886 #866618 #388618
monochromatic
#0B051E #1D0F52 #2F1886 #4121BA #5E3CDC

Accessibility & contrast

On white

13.16
#2F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1886
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1886#FFFFFF#000000##FFFFFF
##2F18861.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1886;
/* rgb */ color: rgb(47, 24, 134);
/* oklch */ color: oklch(32.9% 0.167 281.6);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2f1886',
    950: '#000000',
  },
}
SCSS
$custom: #2f1886;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1886",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 252.545,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32883,
    "c": 0.16732,
    "h": 281.6
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#2F1886
secondary
#A0BA40
accent
#EC3BC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1886

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

Preview Lab → · Contrast checker → · Palette generator →

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