#2F0D4A#2F0D4A

#2F0D4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.106 H 305.2°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2F0D4A
RGBrgb(47, 13, 74)
HSLhsl(273, 70%, 17%)
HSVhsv(273, 82%, 29%)
CMYKcmyk(36.5%, 82.4%, 0%, 71%)
CIE-LABlab(11.87, 29.60, -30.56)
CIE-LCHlch(11.87, 42.54, 314.09°)
OKLaboklab(25.35% 0.0615 -0.0869)
OKLCHoklch(25.35% 0.106 305.2)
XYZxyz(2.5520, 1.3866, 6.6104)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D4A #284A0D
analogous
#110D4A #2F0D4A #4A0D47
triadic
#2F0D4A #4A2F0D #0D4A2F
tetradic
#2F0D4A #4A110D #284A0D #0D474A
square
#2F0D4A #4A110D #284A0D #0D474A
split-complementary
#2F0D4A #474A0D #0D4A11
monochromatic
#11051A #11051A #2F0D4A #50167E #711FB2

Accessibility & contrast

On white

16.44
#2F0D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F0D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0D4A
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D4A#FFFFFF#000000##FFFFFF
##2F0D4A1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#2A1C2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0d4a;
/* rgb */ color: rgb(47, 13, 74);
/* oklch */ color: oklch(25.4% 0.106 305.2);
Tailwind
colors: {
  custom: {
    50: '#6b4f7d',
    500: '#2f0d4a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d4a;
$custom-light: #6b4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d4a",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 273.443,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25353,
    "c": 0.10647,
    "h": 305.2
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#2F0D4A
secondary
#54852E
accent
#ED3B8A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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