#2F0C48#2F0C48

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

Color values

HEX#2F0C48
RGBrgb(47, 12, 72)
HSLhsl(275, 71%, 16%)
HSVhsv(275, 83%, 28%)
CMYKcmyk(34.7%, 83.3%, 0%, 71.8%)
CIE-LABlab(11.52, 29.55, -29.73)
CIE-LCHlch(11.52, 41.92, 314.82°)
OKLaboklab(25.05% 0.063 -0.0845)
OKLCHoklch(25.05% 0.105 306.7)
XYZxyz(2.4732, 1.3352, 6.2571)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C48 #25480C
analogous
#110C48 #2F0C48 #480C43
triadic
#2F0C48 #482F0C #0C482F
tetradic
#2F0C48 #48110C #25480C #0C4348
square
#2F0C48 #48110C #25480C #0C4348
split-complementary
#2F0C48 #43480C #0C4811
monochromatic
#11041A #11041A #2F0C48 #51157C #731DB1

Accessibility & contrast

On white

16.57
#2F0C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C48
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C48#FFFFFF#000000##FFFFFF
##2F0C481.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0c48;
/* rgb */ color: rgb(47, 12, 72);
/* oklch */ color: oklch(25.1% 0.105 306.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f7b',
    500: '#2f0c48',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c48;
$custom-light: #6b4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c48",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 275,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25051,
    "c": 0.10542,
    "h": 306.7
  },
  "luminance": 0.01335
}

Semantic roles & 50–950 ramp

primary
#2F0C48
secondary
#51842C
accent
#EE3A85
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0C48

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

Preview Lab → · Contrast checker → · Palette generator →

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