#2F1B7A#2F1B7A

#2F1B7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.150 H 283.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1B7A
RGBrgb(47, 27, 122)
HSLhsl(253, 64%, 29%)
HSVhsv(253, 78%, 48%)
CMYKcmyk(61.5%, 77.9%, 0%, 52.2%)
CIE-LABlab(19.20, 36.59, -50.45)
CIE-LCHlch(19.20, 62.32, 305.95°)
OKLaboklab(31.96% 0.0353 -0.1454)
OKLCHoklch(31.96% 0.15 283.6)
XYZxyz(5.0760, 2.7930, 18.6802)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B7A #667A1B
analogous
#1B377A #2F1B7A #5F1B7A
triadic
#2F1B7A #7A2F1B #1B7A2F
tetradic
#2F1B7A #7A1B37 #667A1B #1B7A5F
square
#2F1B7A #7A1B37 #667A1B #1B7A5F
split-complementary
#2F1B7A #7A5F1B #377A1B
monochromatic
#0A0619 #1C1048 #2F1B7A #4226AC #5C3CD4

Accessibility & contrast

On white

13.47
#2F1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B7A
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B7A#FFFFFF#000000##FFFFFF
##2F1B7A1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1b7a;
/* rgb */ color: rgb(47, 27, 122);
/* oklch */ color: oklch(32.0% 0.150 283.6);
Tailwind
colors: {
  custom: {
    50: '#725aa1',
    500: '#2f1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b7a;
$custom-light: #725aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b7a",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 252.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31962,
    "c": 0.14961,
    "h": 283.6
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#2F1B7A
secondary
#98AE43
accent
#E741C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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