#2F0D48#2F0D48

#2F0D48 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.104 H 306.5°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#2F0D48
RGBrgb(47, 13, 72)
HSLhsl(275, 69%, 17%)
HSVhsv(275, 82%, 28%)
CMYKcmyk(34.7%, 81.9%, 0%, 71.8%)
CIE-LABlab(11.69, 29.06, -29.46)
CIE-LCHlch(11.69, 41.38, 314.61°)
OKLaboklab(25.17% 0.0619 -0.0837)
OKLCHoklch(25.17% 0.104 306.5)
XYZxyz(2.4857, 1.3601, 6.2612)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D48 #26480D
analogous
#110D48 #2F0D48 #480D44
triadic
#2F0D48 #482F0D #0D482F
tetradic
#2F0D48 #48110D #26480D #0D4448
square
#2F0D48 #48110D #26480D #0D4448
split-complementary
#2F0D48 #44480D #0D4811
monochromatic
#11051A #11051A #2F0D48 #51167C #7320B0

Accessibility & contrast

On white

16.51
#2F0D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0D48
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D48#FFFFFF#000000##FFFFFF
##2F0D481.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0d48;
/* rgb */ color: rgb(47, 13, 72);
/* oklch */ color: oklch(25.2% 0.104 306.5);
Tailwind
colors: {
  custom: {
    50: '#6b4f7b',
    500: '#2f0d48',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d48;
$custom-light: #6b4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d48",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 72
  },
  "hsl": {
    "h": 274.576,
    "s": 69.412,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25171,
    "c": 0.10412,
    "h": 306.5
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#2F0D48
secondary
#52832D
accent
#EC3C86
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0D48

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

Preview Lab → · Contrast checker → · Palette generator →

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