#2F1B7D#2F1B7D

#2F1B7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.153 H 283.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1B7D
RGBrgb(47, 27, 125)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(62.4%, 78.4%, 0%, 51%)
CIE-LABlab(19.51, 37.54, -51.85)
CIE-LCHlch(19.51, 64.01, 305.91°)
OKLaboklab(32.28% 0.0345 -0.1495)
OKLCHoklch(32.28% 0.153 283)
XYZxyz(5.2647, 2.8685, 19.6743)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B7D #697D1B
analogous
#1B387D #2F1B7D #601B7D
triadic
#2F1B7D #7D2F1B #1B7D2F
tetradic
#2F1B7D #7D1B38 #697D1B #1B7D60
square
#2F1B7D #7D1B38 #697D1B #1B7D60
split-complementary
#2F1B7D #7D601B #387D1B
monochromatic
#090519 #1C104B #2F1B7D #4226AF #5C3DD5

Accessibility & contrast

On white

13.34
#2F1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B7D
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B7D#FFFFFF#000000##FFFFFF
##2F1B7D1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1b7d;
/* rgb */ color: rgb(47, 27, 125);
/* oklch */ color: oklch(32.3% 0.153 283.0);
Tailwind
colors: {
  custom: {
    50: '#725aa4',
    500: '#2f1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b7d;
$custom-light: #725aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b7d",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 252.245,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32278,
    "c": 0.1534,
    "h": 283
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#2F1B7D
secondary
#9AB143
accent
#E740C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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