#2F1C85#2F1C85

#2F1C85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.162 H 281.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2F1C85
RGBrgb(47, 28, 133)
HSLhsl(251, 65%, 32%)
HSVhsv(251, 79%, 52%)
CMYKcmyk(64.7%, 78.9%, 0%, 47.8%)
CIE-LABlab(20.55, 39.53, -55.20)
CIE-LCHlch(20.55, 67.89, 305.61°)
OKLaboklab(33.26% 0.0316 -0.1593)
OKLCHoklch(33.26% 0.162 281.2)
XYZxyz(5.8198, 3.1279, 22.4828)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C85 #72851C
analogous
#1C3E85 #2F1C85 #641C85
triadic
#2F1C85 #852F1C #1C852F
tetradic
#2F1C85 #851C3E #72851C #1C8564
square
#2F1C85 #851C3E #72851C #1C8564
split-complementary
#2F1C85 #85641C #3E851C
monochromatic
#0B0720 #1D1152 #2F1C85 #4127B8 #5F44D8

Accessibility & contrast

On white

12.92
#2F1C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F1C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C85
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C85#FFFFFF#000000##FFFFFF
##2F1C851.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1c85;
/* rgb */ color: rgb(47, 28, 133);
/* oklch */ color: oklch(33.3% 0.162 281.2);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#2f1c85',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c85;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c85",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 250.857,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33263,
    "c": 0.16236,
    "h": 281.2
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#2F1C85
secondary
#A3B845
accent
#E840CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1C85

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

Preview Lab → · Contrast checker → · Palette generator →

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