#2F1B83#2F1B83

#2F1B83 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.161 H 281.8°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2F1B83
RGBrgb(47, 27, 131)
HSLhsl(252, 66%, 31%)
HSVhsv(252, 79%, 51%)
CMYKcmyk(64.1%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.15, 39.43, -54.59)
CIE-LCHlch(20.15, 67.34, 305.84°)
OKLaboklab(32.92% 0.0328 -0.1575)
OKLCHoklch(32.92% 0.161 281.8)
XYZxyz(5.6597, 3.0265, 21.7543)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B83 #6F831B
analogous
#1B3B83 #2F1B83 #631B83
triadic
#2F1B83 #832F1B #1B832F
tetradic
#2F1B83 #831B3B #6F831B #1B8363
square
#2F1B83 #831B3B #6F831B #1B8363
split-complementary
#2F1B83 #83631B #3B831B
monochromatic
#0B061E #1D1150 #2F1B83 #4125B6 #5E41D8

Accessibility & contrast

On white

13.08
#2F1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B83
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B83#FFFFFF#000000##FFFFFF
##2F1B831.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1b83;
/* rgb */ color: rgb(47, 27, 131);
/* oklch */ color: oklch(32.9% 0.161 281.8);
Tailwind
colors: {
  custom: {
    50: '#735ba8',
    500: '#2f1b83',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b83;
$custom-light: #735ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b83",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 251.538,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32919,
    "c": 0.16087,
    "h": 281.8
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#2F1B83
secondary
#A0B643
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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