#2F1B8D#2F1B8D

#2F1B8D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.173 H 279.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2F1B8D
RGBrgb(47, 27, 141)
HSLhsl(251, 68%, 33%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(66.7%, 80.9%, 0%, 44.7%)
CIE-LABlab(21.25, 42.55, -59.05)
CIE-LCHlch(21.25, 72.79, 305.77°)
OKLaboklab(34.01% 0.0298 -0.1705)
OKLCHoklch(34.01% 0.173 279.9)
XYZxyz(6.3704, 3.3108, 25.4975)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B8D #798D1B
analogous
#1B408D #2F1B8D #681B8D
triadic
#2F1B8D #8D2F1B #1B8D2F
tetradic
#2F1B8D #8D1B40 #798D1B #1B8D68
square
#2F1B8D #8D1B40 #798D1B #1B8D68
split-complementary
#2F1B8D #8D681B #408D1B
monochromatic
#0D0726 #1E115A #2F1B8D #4025C0 #6147DC

Accessibility & contrast

On white

12.63
#2F1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B8D
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B8D#FFFFFF#000000##FFFFFF
##2F1B8D1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1b8d;
/* rgb */ color: rgb(47, 27, 141);
/* oklch */ color: oklch(34.0% 0.173 279.9);
Tailwind
colors: {
  custom: {
    50: '#765bb0',
    500: '#2f1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b8d;
$custom-light: #765bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b8d",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 250.526,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34011,
    "c": 0.17308,
    "h": 279.9
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#2F1B8D
secondary
#A8BD46
accent
#EB3DCC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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