#2F0D42#2F0D42

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

Color values

HEX#2F0D42
RGBrgb(47, 13, 66)
HSLhsl(278, 67%, 15%)
HSVhsv(278, 80%, 26%)
CMYKcmyk(28.8%, 80.3%, 0%, 74.1%)
CIE-LABlab(11.17, 27.48, -26.08)
CIE-LCHlch(11.17, 37.88, 316.49°)
OKLaboklab(24.64% 0.0631 -0.0738)
OKLCHoklch(24.64% 0.097 310.5)
XYZxyz(2.2994, 1.2856, 5.2802)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D42 #20420D
analogous
#150D42 #2F0D42 #420D3A
triadic
#2F0D42 #422F0D #0D422F
tetradic
#2F0D42 #42150D #20420D #0D3A42
square
#2F0D42 #42150D #20420D #0D3A42
split-complementary
#2F0D42 #3A420D #0D4215
monochromatic
#12051A #12051A #2F0D42 #531775 #7821A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F0D42#FFFFFF#000000##FFFFFF
##2F0D421.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)
#001C44
Deuteranopia (green-blind)
#051E41
Tritanopia (blue-blind)
#2C1926
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0d42;
/* rgb */ color: rgb(47, 13, 66);
/* oklch */ color: oklch(24.6% 0.097 310.5);
Tailwind
colors: {
  custom: {
    50: '#6a4f77',
    500: '#2f0d42',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d42;
$custom-light: #6a4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d42",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 278.491,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24643,
    "c": 0.09706,
    "h": 310.5
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#2F0D42
secondary
#4A7E2D
accent
#EA3E7C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0D42

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

Preview Lab → · Contrast checker → · Palette generator →

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