#2F1C81#2F1C81

#2F1C81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 282.0°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1C81
RGBrgb(47, 28, 129)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(63.6%, 78.3%, 0%, 49.4%)
CIE-LABlab(20.12, 38.27, -53.38)
CIE-LCHlch(20.12, 65.68, 305.64°)
OKLaboklab(32.84% 0.0327 -0.1539)
OKLCHoklch(32.84% 0.157 282)
XYZxyz(5.5488, 3.0194, 21.0550)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C81 #6E811C
analogous
#1C3B81 #2F1C81 #611C81
triadic
#2F1C81 #812F1C #1C812F
tetradic
#2F1C81 #811C3B #6E811C #1C8161
square
#2F1C81 #811C3B #6E811C #1C8161
split-complementary
#2F1C81 #81611C #3B811C
monochromatic
#0A061C #1D114F #2F1C81 #4127B3 #5D42D6

Accessibility & contrast

On white

13.09
#2F1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C81
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C81#FFFFFF#000000##FFFFFF
##2F1C811.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1c81;
/* rgb */ color: rgb(47, 28, 129);
/* oklch */ color: oklch(32.8% 0.157 282.0);
Tailwind
colors: {
  custom: {
    50: '#735ba7',
    500: '#2f1c81',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c81;
$custom-light: #735ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c81",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 251.287,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32835,
    "c": 0.15738,
    "h": 282
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#2F1C81
secondary
#9FB444
accent
#E740C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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