#2F1D7E#2F1D7E

#2F1D7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.153 H 282.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2F1D7E
RGBrgb(47, 29, 126)
HSLhsl(251, 63%, 30%)
HSVhsv(251, 77%, 49%)
CMYKcmyk(62.7%, 77%, 0%, 50.6%)
CIE-LABlab(20.00, 36.76, -51.67)
CIE-LCHlch(20.00, 63.42, 305.43°)
OKLaboklab(32.66% 0.0328 -0.149)
OKLCHoklch(32.66% 0.153 282.4)
XYZxyz(5.3764, 2.9891, 20.0283)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D7E #6C7E1D
analogous
#1D3B7E #2F1D7E #5F1D7E
triadic
#2F1D7E #7E2F1D #1D7E2F
tetradic
#2F1D7E #7E1D3B #6C7E1D #1D7E5F
square
#2F1D7E #7E1D3B #6C7E1D #1D7E5F
split-complementary
#2F1D7E #7E5F1D #3B7E1D
monochromatic
#0A061B #1C124C #2F1D7E #4228B0 #5D42D3

Accessibility & contrast

On white

13.14
#2F1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D7E
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D7E#FFFFFF#000000##FFFFFF
##2F1D7E1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1d7e;
/* rgb */ color: rgb(47, 29, 126);
/* oklch */ color: oklch(32.7% 0.153 282.4);
Tailwind
colors: {
  custom: {
    50: '#725ba4',
    500: '#2f1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d7e;
$custom-light: #725ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d7e",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 251.134,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32655,
    "c": 0.15254,
    "h": 282.4
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#2F1D7E
secondary
#9DB145
accent
#E642C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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