#2F1B7C#2F1B7C

#2F1B7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.152 H 283.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1B7C
RGBrgb(47, 27, 124)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(62.1%, 78.2%, 0%, 51.4%)
CIE-LABlab(19.40, 37.22, -51.38)
CIE-LCHlch(19.40, 63.45, 305.92°)
OKLaboklab(32.17% 0.0348 -0.1481)
OKLCHoklch(32.17% 0.152 283.2)
XYZxyz(5.2012, 2.8431, 19.3396)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B7C #687C1B
analogous
#1B387C #2F1B7C #601B7C
triadic
#2F1B7C #7C2F1B #1B7C2F
tetradic
#2F1B7C #7C1B38 #687C1B #1B7C60
square
#2F1B7C #7C1B38 #687C1B #1B7C60
split-complementary
#2F1B7C #7C601B #387C1B
monochromatic
#0A0519 #1C104A #2F1B7C #4226AE #5C3DD5

Accessibility & contrast

On white

13.39
#2F1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B7C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B7C#FFFFFF#000000##FFFFFF
##2F1B7C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1b7c;
/* rgb */ color: rgb(47, 27, 124);
/* oklch */ color: oklch(32.2% 0.152 283.2);
Tailwind
colors: {
  custom: {
    50: '#725aa3',
    500: '#2f1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b7c;
$custom-light: #725aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b7c",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 252.371,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32172,
    "c": 0.15213,
    "h": 283.2
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#2F1B7C
secondary
#99B043
accent
#E741C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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