#2F0E48#2F0E48

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

Color values

HEX#2F0E48
RGBrgb(47, 14, 72)
HSLhsl(274, 67%, 17%)
HSVhsv(274, 81%, 28%)
CMYKcmyk(34.7%, 80.6%, 0%, 71.8%)
CIE-LABlab(11.87, 28.56, -29.17)
CIE-LCHlch(11.87, 40.82, 314.40°)
OKLaboklab(25.3% 0.0608 -0.0829)
OKLCHoklch(25.3% 0.103 306.2)
XYZxyz(2.4988, 1.3863, 6.2656)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E48 #27480E
analogous
#120E48 #2F0E48 #480E44
triadic
#2F0E48 #482F0E #0E482F
tetradic
#2F0E48 #48120E #27480E #0E4448
square
#2F0E48 #48120E #27480E #0E4448
split-complementary
#2F0E48 #44480E #0E4812
monochromatic
#11051A #11051A #2F0E48 #50187B #7222AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F0E48#FFFFFF#000000##FFFFFF
##2F0E481.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)
#001E4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#2B1C2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0e48;
/* rgb */ color: rgb(47, 14, 72);
/* oklch */ color: oklch(25.3% 0.103 306.2);
Tailwind
colors: {
  custom: {
    50: '#6b507b',
    500: '#2f0e48',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e48;
$custom-light: #6b507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e48",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 72
  },
  "hsl": {
    "h": 274.138,
    "s": 67.442,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25296,
    "c": 0.10277,
    "h": 306.2
  },
  "luminance": 0.01386
}

Semantic roles & 50–950 ramp

primary
#2F0E48
secondary
#53832F
accent
#EA3D88
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0E48

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

Preview Lab → · Contrast checker → · Palette generator →

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