#2F1B78#2F1B78

#2F1B78 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.147 H 284.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2F1B78
RGBrgb(47, 27, 120)
HSLhsl(253, 63%, 29%)
HSVhsv(253, 78%, 47%)
CMYKcmyk(60.8%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.99, 35.95, -49.51)
CIE-LCHlch(18.99, 61.19, 305.98°)
OKLaboklab(31.75% 0.0358 -0.1426)
OKLCHoklch(31.75% 0.147 284.1)
XYZxyz(4.9533, 2.7440, 18.0343)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B78 #64781B
analogous
#1B3678 #2F1B78 #5E1B78
triadic
#2F1B78 #782F1B #1B782F
tetradic
#2F1B78 #781B36 #64781B #1B785E
square
#2F1B78 #781B36 #64781B #1B785E
split-complementary
#2F1B78 #785E1B #36781B
monochromatic
#0A0619 #1B1046 #2F1B78 #4326AA #5B3BD3

Accessibility & contrast

On white

13.56
#2F1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B78
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B78#FFFFFF#000000##FFFFFF
##2F1B781.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#043548
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1b78;
/* rgb */ color: rgb(47, 27, 120);
/* oklch */ color: oklch(31.8% 0.147 284.1);
Tailwind
colors: {
  custom: {
    50: '#715aa0',
    500: '#2f1b78',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b78;
$custom-light: #715aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b78",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 252.903,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31754,
    "c": 0.14708,
    "h": 284.1
  },
  "luminance": 0.02744
}

Semantic roles & 50–950 ramp

primary
#2F1B78
secondary
#96AC43
accent
#E641C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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