#2F0D49#2F0D49

#2F0D49 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.105 H 305.9°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2F0D49
RGBrgb(47, 13, 73)
HSLhsl(274, 70%, 17%)
HSVhsv(274, 82%, 29%)
CMYKcmyk(35.6%, 82.2%, 0%, 71.4%)
CIE-LABlab(11.78, 29.33, -30.01)
CIE-LCHlch(11.78, 41.96, 314.35°)
OKLaboklab(25.26% 0.0617 -0.0853)
OKLCHoklch(25.26% 0.105 305.9)
XYZxyz(2.5185, 1.3732, 6.4344)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D49 #27490D
analogous
#110D49 #2F0D49 #490D45
triadic
#2F0D49 #492F0D #0D492F
tetradic
#2F0D49 #49110D #27490D #0D4549
square
#2F0D49 #49110D #27490D #0D4549
split-complementary
#2F0D49 #45490D #0D4911
monochromatic
#11051A #11051A #2F0D49 #50167D #7220B1

Accessibility & contrast

On white

16.48
#2F0D49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F0D49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0D49
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D49#FFFFFF#000000##FFFFFF
##2F0D491.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#2A1C2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0d49;
/* rgb */ color: rgb(47, 13, 73);
/* oklch */ color: oklch(25.3% 0.105 305.9);
Tailwind
colors: {
  custom: {
    50: '#6b4f7c',
    500: '#2f0d49',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d49;
$custom-light: #6b4f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d49",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 73
  },
  "hsl": {
    "h": 274,
    "s": 69.767,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25262,
    "c": 0.10529,
    "h": 305.9
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#2F0D49
secondary
#53842D
accent
#ED3B88
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0D49

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

Preview Lab → · Contrast checker → · Palette generator →

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