#2F1B87#2F1B87

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

Color values

HEX#2F1B87
RGBrgb(47, 27, 135)
HSLhsl(251, 67%, 32%)
HSVhsv(251, 80%, 53%)
CMYKcmyk(65.2%, 80%, 0%, 47.1%)
CIE-LABlab(20.58, 40.68, -56.40)
CIE-LCHlch(20.58, 69.54, 305.81°)
OKLaboklab(33.35% 0.0316 -0.1627)
OKLCHoklch(33.35% 0.166 281)
XYZxyz(5.9360, 3.1370, 23.2097)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B87 #73871B
analogous
#1B3D87 #2F1B87 #651B87
triadic
#2F1B87 #872F1B #1B872F
tetradic
#2F1B87 #871B3D #73871B #1B8765
square
#2F1B87 #871B3D #73871B #1B8765
split-complementary
#2F1B87 #87651B #3D871B
monochromatic
#0B0721 #1D1154 #2F1B87 #4125BA #5F43D9

Accessibility & contrast

On white

12.90
#2F1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B87
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B87#FFFFFF#000000##FFFFFF
##2F1B871.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1b87;
/* rgb */ color: rgb(47, 27, 135);
/* oklch */ color: oklch(33.4% 0.166 281.0);
Tailwind
colors: {
  custom: {
    50: '#745bab',
    500: '#2f1b87',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b87;
$custom-light: #745bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b87",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 251.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.16578,
    "h": 281
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

primary
#2F1B87
secondary
#A4BA44
accent
#EA3ECA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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