#2F1D7A#2F1D7A

#2F1D7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.147 H 283.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2F1D7A
RGBrgb(47, 29, 122)
HSLhsl(252, 62%, 30%)
HSVhsv(252, 76%, 48%)
CMYKcmyk(61.5%, 76.2%, 0%, 52.2%)
CIE-LABlab(19.59, 35.47, -49.80)
CIE-LCHlch(19.59, 61.14, 305.46°)
OKLaboklab(32.24% 0.0338 -0.1435)
OKLCHoklch(32.24% 0.147 283.2)
XYZxyz(5.1234, 2.8879, 18.6960)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D7A #687A1D
analogous
#1D3A7A #2F1D7A #5E1D7A
triadic
#2F1D7A #7A2F1D #1D7A2F
tetradic
#2F1D7A #7A1D3A #687A1D #1D7A5E
square
#2F1D7A #7A1D3A #687A1D #1D7A5E
split-complementary
#2F1D7A #7A5E1D #3A7A1D
monochromatic
#0A0619 #1C1149 #2F1D7A #4229AB #5C40D2

Accessibility & contrast

On white

13.31
#2F1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D7A
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D7A#FFFFFF#000000##FFFFFF
##2F1D7A1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1d7a;
/* rgb */ color: rgb(47, 29, 122);
/* oklch */ color: oklch(32.2% 0.147 283.2);
Tailwind
colors: {
  custom: {
    50: '#715ba1',
    500: '#2f1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d7a;
$custom-light: #715ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d7a",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 251.613,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3224,
    "c": 0.14743,
    "h": 283.2
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#2F1D7A
secondary
#99AE45
accent
#E543C5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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