#2F1785#2F1785

#2F1785 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.167 H 282.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1785
RGBrgb(47, 23, 133)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 52%)
CMYKcmyk(64.7%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.68, 42.04, -56.63)
CIE-LCHlch(19.68, 70.53, 306.59°)
OKLaboklab(32.66% 0.0346 -0.1634)
OKLCHoklch(32.66% 0.167 282)
XYZxyz(5.7110, 2.9102, 22.4465)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1785 #6D8517
analogous
#173685 #2F1785 #661785
triadic
#2F1785 #852F17 #17852F
tetradic
#2F1785 #851736 #6D8517 #178566
square
#2F1785 #851736 #6D8517 #178566
split-complementary
#2F1785 #856617 #368517
monochromatic
#0A051D #1D0E51 #2F1785 #4120B9 #5D3ADD

Accessibility & contrast

On white

13.27
#2F1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1785
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1785#FFFFFF#000000##FFFFFF
##2F17851.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1785;
/* rgb */ color: rgb(47, 23, 133);
/* oklch */ color: oklch(32.7% 0.167 282.0);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2f1785',
    950: '#000000',
  },
}
SCSS
$custom: #2f1785;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1785",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 253.091,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32658,
    "c": 0.167,
    "h": 282
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#2F1785
secondary
#9EB93F
accent
#ED3BC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1785

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

Preview Lab → · Contrast checker → · Palette generator →

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