#2F1F7D#2F1F7D

#2F1F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 282.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2F1F7D
RGBrgb(47, 31, 125)
HSLhsl(250, 60%, 31%)
HSVhsv(250, 75%, 49%)
CMYKcmyk(62.4%, 75.2%, 0%, 51%)
CIE-LABlab(20.30, 35.30, -50.54)
CIE-LCHlch(20.30, 61.65, 304.93°)
OKLaboklab(32.84% 0.0315 -0.1457)
OKLCHoklch(32.84% 0.149 282.2)
XYZxyz(5.3628, 3.0646, 19.7070)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F7D #6D7D1F
analogous
#1F3E7D #2F1F7D #5E1F7D
triadic
#2F1F7D #7D2F1F #1F7D2F
tetradic
#2F1F7D #7D1F3E #6D7D1F #1F7D5E
square
#2F1F7D #7D1F3E #6D7D1F #1F7D5E
split-complementary
#2F1F7D #7D5E1F #3E7D1F
monochromatic
#0A071B #1D134C #2F1F7D #412BAE #5D45D1

Accessibility & contrast

On white

13.02
#2F1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F7D
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F7D#FFFFFF#000000##FFFFFF
##2F1F7D1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1f7d;
/* rgb */ color: rgb(47, 31, 125);
/* oklch */ color: oklch(32.8% 0.149 282.2);
Tailwind
colors: {
  custom: {
    50: '#725da4',
    500: '#2f1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f7d;
$custom-light: #725da4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f7d",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 250.213,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32836,
    "c": 0.14905,
    "h": 282.2
  },
  "luminance": 0.03065
}

Semantic roles & 50–950 ramp

primary
#2F1F7D
secondary
#9EB048
accent
#E344C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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