#2F0A48#2F0A48

#2F0A48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.108 H 307.1°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#2F0A48
RGBrgb(47, 10, 72)
HSLhsl(276, 76%, 16%)
HSVhsv(276, 86%, 28%)
CMYKcmyk(34.7%, 86.1%, 0%, 71.8%)
CIE-LABlab(11.20, 30.46, -30.25)
CIE-LCHlch(11.20, 42.93, 315.20°)
OKLaboklab(24.83% 0.0651 -0.086)
OKLCHoklch(24.83% 0.108 307.1)
XYZxyz(2.4503, 1.2893, 6.2494)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A48 #23480A
analogous
#100A48 #2F0A48 #480A42
triadic
#2F0A48 #482F0A #0A482F
tetradic
#2F0A48 #48100A #23480A #0A4248
square
#2F0A48 #48100A #23480A #0A4248
split-complementary
#2F0A48 #42480A #0A4810
monochromatic
#12041B #12041B #2F0A48 #52117E #7519B3

Accessibility & contrast

On white

16.70
#2F0A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F0A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0A48
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A48#FFFFFF#000000##FFFFFF
##2F0A481.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#2B1A29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0a48;
/* rgb */ color: rgb(47, 10, 72);
/* oklch */ color: oklch(24.8% 0.108 307.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e7b',
    500: '#2f0a48',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a48;
$custom-light: #6b4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a48",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 72
  },
  "hsl": {
    "h": 275.806,
    "s": 75.61,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24827,
    "c": 0.10787,
    "h": 307.1
  },
  "luminance": 0.01289
}

Semantic roles & 50–950 ramp

primary
#2F0A48
secondary
#4E8529
accent
#F23682
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0A48

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

Preview Lab → · Contrast checker → · Palette generator →

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