#2F1E7E#2F1E7E

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

Color values

HEX#2F1E7E
RGBrgb(47, 30, 126)
HSLhsl(251, 62%, 31%)
HSVhsv(251, 76%, 49%)
CMYKcmyk(62.7%, 76.2%, 0%, 50.6%)
CIE-LABlab(20.20, 36.20, -51.35)
CIE-LCHlch(20.20, 62.82, 305.18°)
OKLaboklab(32.8% 0.032 -0.148)
OKLCHoklch(32.8% 0.151 282.2)
XYZxyz(5.4013, 3.0389, 20.0366)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E7E #6D7E1E
analogous
#1E3D7E #2F1E7E #5F1E7E
triadic
#2F1E7E #7E2F1E #1E7E2F
tetradic
#2F1E7E #7E1E3D #6D7E1E #1E7E5F
square
#2F1E7E #7E1E3D #6D7E1E #1E7E5F
split-complementary
#2F1E7E #7E5F1E #3D7E1E
monochromatic
#0A061B #1D124D #2F1E7E #412AAF #5D44D2

Accessibility & contrast

On white

13.06
#2F1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E7E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E7E#FFFFFF#000000##FFFFFF
##2F1E7E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1e7e;
/* rgb */ color: rgb(47, 30, 126);
/* oklch */ color: oklch(32.8% 0.151 282.2);
Tailwind
colors: {
  custom: {
    50: '#725ca4',
    500: '#2f1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e7e;
$custom-light: #725ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e7e",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 250.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.15145,
    "h": 282.2
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#2F1E7E
secondary
#9EB147
accent
#E543C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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