#2F0F47#2F0F47

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

Color values

HEX#2F0F47
RGBrgb(47, 15, 71)
HSLhsl(274, 65%, 17%)
HSVhsv(274, 79%, 28%)
CMYKcmyk(33.8%, 78.9%, 0%, 72.2%)
CIE-LABlab(11.96, 27.77, -28.31)
CIE-LCHlch(11.96, 39.66, 314.45°)
OKLaboklab(25.34% 0.0598 -0.0804)
OKLCHoklch(25.34% 0.1 306.6)
XYZxyz(2.4802, 1.4009, 6.0998)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F47 #27470F
analogous
#130F47 #2F0F47 #470F43
triadic
#2F0F47 #472F0F #0F472F
tetradic
#2F0F47 #47130F #27470F #0F4347
square
#2F0F47 #47130F #27470F #0F4347
split-complementary
#2F0F47 #43470F #0F4713
monochromatic
#110519 #110519 #2F0F47 #501A7A #7224AC

Accessibility & contrast

On white

16.40
#2F0F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F47
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F47#FFFFFF#000000##FFFFFF
##2F0F471.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0f47;
/* rgb */ color: rgb(47, 15, 71);
/* oklch */ color: oklch(25.3% 0.100 306.6);
Tailwind
colors: {
  custom: {
    50: '#6a507b',
    500: '#2f0f47',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f47;
$custom-light: #6a507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f47",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 274.286,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25338,
    "c": 0.10016,
    "h": 306.6
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#2F0F47
secondary
#538130
accent
#E84088
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0F47

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

Preview Lab → · Contrast checker → · Palette generator →

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