#2F0D4F#2F0D4F

#2F0D4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.112 H 302.4°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2F0D4F
RGBrgb(47, 13, 79)
HSLhsl(271, 72%, 18%)
HSVhsv(271, 84%, 31%)
CMYKcmyk(40.5%, 83.5%, 0%, 69%)
CIE-LABlab(12.33, 30.96, -33.26)
CIE-LCHlch(12.33, 45.44, 312.95°)
OKLaboklab(25.82% 0.0601 -0.0949)
OKLCHoklch(25.82% 0.112 302.4)
XYZxyz(2.7272, 1.4567, 7.5331)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D4F #2D4F0D
analogous
#0E0D4F #2F0D4F #4F0D4E
triadic
#2F0D4F #4F2F0D #0D4F2F
tetradic
#2F0D4F #4F0E0D #2D4F0D #0D4E4F
square
#2F0D4F #4F0E0D #2D4F0D #0D4E4F
split-complementary
#2F0D4F #4E4F0D #0D4F0E
monochromatic
#10041A #10041A #2F0D4F #4E1684 #6E1EB8

Accessibility & contrast

On white

16.26
#2F0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0D4F
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D4F#FFFFFF#000000##FFFFFF
##2F0D4F1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#281E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0d4f;
/* rgb */ color: rgb(47, 13, 79);
/* oklch */ color: oklch(25.8% 0.112 302.4);
Tailwind
colors: {
  custom: {
    50: '#6b5081',
    500: '#2f0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d4f;
$custom-light: #6b5081;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d4f",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 270.909,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25822,
    "c": 0.11234,
    "h": 302.4
  },
  "luminance": 0.01457
}

Semantic roles & 50–950 ramp

primary
#2F0D4F
secondary
#5B8A2E
accent
#EE3991
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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