#2F1786#2F1786

#2F1786 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.168 H 281.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#2F1786
RGBrgb(47, 23, 134)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 53%)
CMYKcmyk(64.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.79, 42.34, -57.07)
CIE-LCHlch(19.79, 71.07, 306.57°)
OKLaboklab(32.77% 0.0343 -0.1647)
OKLCHoklch(32.77% 0.168 281.7)
XYZxyz(5.7804, 2.9379, 22.8121)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1786 #6E8617
analogous
#173686 #2F1786 #661786
triadic
#2F1786 #862F17 #17862F
tetradic
#2F1786 #861736 #6E8617 #178666
square
#2F1786 #861736 #6E8617 #178666
split-complementary
#2F1786 #866617 #368617
monochromatic
#0A051E #1D0E52 #2F1786 #4120BA #5D3ADD

Accessibility & contrast

On white

13.23
#2F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1786
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1786#FFFFFF#000000##FFFFFF
##2F17861.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1786;
/* rgb */ color: rgb(47, 23, 134);
/* oklch */ color: oklch(32.8% 0.168 281.7);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2f1786',
    950: '#000000',
  },
}
SCSS
$custom: #2f1786;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1786",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 252.973,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3277,
    "c": 0.16819,
    "h": 281.7
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#2F1786
secondary
#9FBA3F
accent
#ED3AC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1786

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

Preview Lab → · Contrast checker → · Palette generator →

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