#2F1C7D#2F1C7D

#2F1C7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.152 H 282.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2F1C7D
RGBrgb(47, 28, 125)
HSLhsl(252, 63%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(62.4%, 77.6%, 0%, 51%)
CIE-LABlab(19.70, 36.99, -51.53)
CIE-LCHlch(19.70, 63.43, 305.68°)
OKLaboklab(32.41% 0.0338 -0.1486)
OKLCHoklch(32.41% 0.152 282.8)
XYZxyz(5.2881, 2.9152, 19.6821)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C7D #6A7D1C
analogous
#1C397D #2F1C7D #601C7D
triadic
#2F1C7D #7D2F1C #1C7D2F
tetradic
#2F1C7D #7D1C39 #6A7D1C #1C7D60
square
#2F1C7D #7D1C39 #6A7D1C #1C7D60
split-complementary
#2F1C7D #7D601C #397D1C
monochromatic
#090619 #1C114B #2F1C7D #4227AF #5C3FD4

Accessibility & contrast

On white

13.26
#2F1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C7D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C7D#FFFFFF#000000##FFFFFF
##2F1C7D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1c7d;
/* rgb */ color: rgb(47, 28, 125);
/* oklch */ color: oklch(32.4% 0.152 282.8);
Tailwind
colors: {
  custom: {
    50: '#725ba4',
    500: '#2f1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c7d;
$custom-light: #725ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c7d",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 251.753,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.15235,
    "h": 282.8
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#2F1C7D
secondary
#9BB144
accent
#E641C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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