#2F0D47#2F0D47

#2F0D47 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.103 H 307.1°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2F0D47
RGBrgb(47, 13, 71)
HSLhsl(275, 69%, 16%)
HSVhsv(275, 82%, 28%)
CMYKcmyk(33.8%, 81.7%, 0%, 72.2%)
CIE-LABlab(11.60, 28.80, -28.90)
CIE-LCHlch(11.60, 40.80, 314.90°)
OKLaboklab(25.08% 0.0621 -0.0821)
OKLCHoklch(25.08% 0.103 307.1)
XYZxyz(2.4533, 1.3471, 6.0908)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D47 #25470D
analogous
#120D47 #2F0D47 #470D42
triadic
#2F0D47 #472F0D #0D472F
tetradic
#2F0D47 #47120D #25470D #0D4247
square
#2F0D47 #47120D #25470D #0D4247
split-complementary
#2F0D47 #42470D #0D4712
monochromatic
#11051A #11051A #2F0D47 #51167B #7320AE

Accessibility & contrast

On white

16.54
#2F0D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0D47
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D47#FFFFFF#000000##FFFFFF
##2F0D471.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2B1B29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0d47;
/* rgb */ color: rgb(47, 13, 71);
/* oklch */ color: oklch(25.1% 0.103 307.1);
Tailwind
colors: {
  custom: {
    50: '#6b4f7b',
    500: '#2f0d47',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d47;
$custom-light: #6b4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d47",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 275.172,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25081,
    "c": 0.10294,
    "h": 307.1
  },
  "luminance": 0.01347
}

Semantic roles & 50–950 ramp

primary
#2F0D47
secondary
#51822D
accent
#EC3C85
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0D47

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

Preview Lab → · Contrast checker → · Palette generator →

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