#2F0D4C#2F0D4C

#2F0D4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.109 H 304.1°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2F0D4C
RGBrgb(47, 13, 76)
HSLhsl(272, 71%, 17%)
HSVhsv(272, 83%, 30%)
CMYKcmyk(38.2%, 82.9%, 0%, 70.2%)
CIE-LABlab(12.05, 30.14, -31.65)
CIE-LCHlch(12.05, 43.70, 313.60°)
OKLaboklab(25.54% 0.061 -0.0901)
OKLCHoklch(25.54% 0.109 304.1)
XYZxyz(2.6204, 1.4140, 6.9710)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D4C #2A4C0D
analogous
#0F0D4C #2F0D4C #4C0D4A
triadic
#2F0D4C #4C2F0D #0D4C2F
tetradic
#2F0D4C #4C0F0D #2A4C0D #0D4A4C
square
#2F0D4C #4C0F0D #2A4C0D #0D4A4C
split-complementary
#2F0D4C #4A4C0D #0D4C0F
monochromatic
#10041A #10041A #2F0D4C #4F1680 #701FB5

Accessibility & contrast

On white

16.37
#2F0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0D4C
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D4C#FFFFFF#000000##FFFFFF
##2F0D4C1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#291D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0d4c;
/* rgb */ color: rgb(47, 13, 76);
/* oklch */ color: oklch(25.5% 0.109 304.1);
Tailwind
colors: {
  custom: {
    50: '#6b507f',
    500: '#2f0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d4c;
$custom-light: #6b507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d4c",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 272.381,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25539,
    "c": 0.10882,
    "h": 304.1
  },
  "luminance": 0.01414
}

Semantic roles & 50–950 ramp

primary
#2F0D4C
secondary
#57872E
accent
#EE3A8D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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