#2F1D85#2F1D85

#2F1D85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.161 H 281.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2F1D85
RGBrgb(47, 29, 133)
HSLhsl(250, 64%, 32%)
HSVhsv(250, 78%, 52%)
CMYKcmyk(64.7%, 78.2%, 0%, 47.8%)
CIE-LABlab(20.74, 39.00, -54.89)
CIE-LCHlch(20.74, 67.33, 305.40°)
OKLaboklab(33.39% 0.0309 -0.1584)
OKLCHoklch(33.39% 0.161 281)
XYZxyz(5.8440, 3.1761, 22.4908)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D85 #73851D
analogous
#1D3F85 #2F1D85 #631D85
triadic
#2F1D85 #852F1D #1D852F
tetradic
#2F1D85 #851D3F #73851D #1D8563
square
#2F1D85 #851D3F #73851D #1D8563
split-complementary
#2F1D85 #85631D #3F851D
monochromatic
#0B0721 #1D1253 #2F1D85 #4128B7 #5F46D7

Accessibility & contrast

On white

12.84
#2F1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D85
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D85#FFFFFF#000000##FFFFFF
##2F1D851.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1d85;
/* rgb */ color: rgb(47, 29, 133);
/* oklch */ color: oklch(33.4% 0.161 281.0);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#2f1d85',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d85;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d85",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 250.385,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33394,
    "c": 0.16136,
    "h": 281
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#2F1D85
secondary
#A4B846
accent
#E741CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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