#2F1B76#2F1B76

#2F1B76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.145 H 284.6°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2F1B76
RGBrgb(47, 27, 118)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 77%, 46%)
CMYKcmyk(60.2%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.78, 35.32, -48.57)
CIE-LCHlch(18.78, 60.05, 306.02°)
OKLaboklab(31.55% 0.0364 -0.1399)
OKLCHoklch(31.55% 0.145 284.6)
XYZxyz(4.8332, 2.6959, 17.4017)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B76 #62761B
analogous
#1B3476 #2F1B76 #5C1B76
triadic
#2F1B76 #762F1B #1B762F
tetradic
#2F1B76 #761B34 #62761B #1B765C
square
#2F1B76 #761B34 #62761B #1B765C
split-complementary
#2F1B76 #765C1B #34761B
monochromatic
#0A0619 #1B1044 #2F1B76 #4326A8 #5B3AD2

Accessibility & contrast

On white

13.64
#2F1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B76
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B76#FFFFFF#000000##FFFFFF
##2F1B761.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#083447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1b76;
/* rgb */ color: rgb(47, 27, 118);
/* oklch */ color: oklch(31.5% 0.145 284.6);
Tailwind
colors: {
  custom: {
    50: '#715a9e',
    500: '#2f1b76',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b76;
$custom-light: #715a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b76",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 253.187,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.14453,
    "h": 284.6
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#2F1B76
secondary
#94AA42
accent
#E642C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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