#2F1B80#2F1B80

#2F1B80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.157 H 282.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1B80
RGBrgb(47, 27, 128)
HSLhsl(252, 65%, 30%)
HSVhsv(252, 79%, 50%)
CMYKcmyk(63.3%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.83, 38.49, -53.23)
CIE-LCHlch(19.83, 65.68, 305.87°)
OKLaboklab(32.6% 0.0336 -0.1535)
OKLCHoklch(32.6% 0.157 282.4)
XYZxyz(5.4593, 2.9463, 20.6989)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B80 #6C801B
analogous
#1B3A80 #2F1B80 #611B80
triadic
#2F1B80 #802F1B #1B802F
tetradic
#2F1B80 #801B3A #6C801B #1B8061
square
#2F1B80 #801B3A #6C801B #1B8061
split-complementary
#2F1B80 #80611B #3A801B
monochromatic
#0A061B #1C104D #2F1B80 #4226B3 #5D3FD6

Accessibility & contrast

On white

13.21
#2F1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B80
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B80#FFFFFF#000000##FFFFFF
##2F1B801.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1b80;
/* rgb */ color: rgb(47, 27, 128);
/* oklch */ color: oklch(32.6% 0.157 282.4);
Tailwind
colors: {
  custom: {
    50: '#735aa6',
    500: '#2f1b80',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b80;
$custom-light: #735aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b80",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 251.881,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32597,
    "c": 0.15714,
    "h": 282.4
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#2F1B80
secondary
#9DB443
accent
#E840C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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