#2F1D78#2F1D78

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

Color values

HEX#2F1D78
RGBrgb(47, 29, 120)
HSLhsl(252, 61%, 29%)
HSVhsv(252, 76%, 47%)
CMYKcmyk(60.8%, 75.8%, 0%, 52.9%)
CIE-LABlab(19.39, 34.83, -48.86)
CIE-LCHlch(19.39, 60.00, 305.48°)
OKLaboklab(32.04% 0.0342 -0.1407)
OKLCHoklch(32.04% 0.145 283.7)
XYZxyz(5.0008, 2.8388, 18.0501)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D78 #66781D
analogous
#1D3978 #2F1D78 #5D1D78
triadic
#2F1D78 #782F1D #1D782F
tetradic
#2F1D78 #781D39 #66781D #1D785D
square
#2F1D78 #781D39 #66781D #1D785D
split-complementary
#2F1D78 #785D1D #39781D
monochromatic
#0A0619 #1C1147 #2F1D78 #4229A9 #5C3FD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1D78#FFFFFF#000000##FFFFFF
##2F1D781.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)
#00327B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#043648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1d78;
/* rgb */ color: rgb(47, 29, 120);
/* oklch */ color: oklch(32.0% 0.145 283.7);
Tailwind
colors: {
  custom: {
    50: '#715ba0',
    500: '#2f1d78',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d78;
$custom-light: #715ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d78",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 251.868,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32035,
    "c": 0.14485,
    "h": 283.7
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#2F1D78
secondary
#98AC45
accent
#E444C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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