#2F1B81#2F1B81

#2F1B81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.158 H 282.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2F1B81
RGBrgb(47, 27, 129)
HSLhsl(252, 65%, 31%)
HSVhsv(252, 79%, 51%)
CMYKcmyk(63.6%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.93, 38.80, -53.68)
CIE-LCHlch(19.93, 66.24, 305.86°)
OKLaboklab(32.7% 0.0334 -0.1548)
OKLCHoklch(32.7% 0.158 282.2)
XYZxyz(5.5254, 2.9728, 21.0473)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B81 #6D811B
analogous
#1B3A81 #2F1B81 #621B81
triadic
#2F1B81 #812F1B #1B812F
tetradic
#2F1B81 #811B3A #6D811B #1B8162
square
#2F1B81 #811B3A #6D811B #1B8162
split-complementary
#2F1B81 #81621B #3A811B
monochromatic
#0A061C #1D104E #2F1B81 #4126B4 #5D3FD7

Accessibility & contrast

On white

13.17
#2F1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B81
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B81#FFFFFF#000000##FFFFFF
##2F1B811.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1b81;
/* rgb */ color: rgb(47, 27, 129);
/* oklch */ color: oklch(32.7% 0.158 282.2);
Tailwind
colors: {
  custom: {
    50: '#735aa7',
    500: '#2f1b81',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b81;
$custom-light: #735aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b81",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 251.765,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32704,
    "c": 0.15838,
    "h": 282.2
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#2F1B81
secondary
#9EB543
accent
#E83FC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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