#2F0E4B#2F0E4B

#2F0E4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.106 H 304.4°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#2F0E4B
RGBrgb(47, 14, 75)
HSLhsl(272, 69%, 17%)
HSVhsv(272, 81%, 29%)
CMYKcmyk(37.3%, 81.3%, 0%, 70.6%)
CIE-LABlab(12.13, 29.38, -30.82)
CIE-LCHlch(12.13, 42.58, 313.62°)
OKLaboklab(25.57% 0.0601 -0.0877)
OKLCHoklch(25.57% 0.106 304.4)
XYZxyz(2.5990, 1.4264, 6.7936)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E4B #2A4B0E
analogous
#110E4B #2F0E4B #4B0E48
triadic
#2F0E4B #4B2F0E #0E4B2F
tetradic
#2F0E4B #4B110E #2A4B0E #0E484B
square
#2F0E4B #4B110E #2A4B0E #0E484B
split-complementary
#2F0E4B #484B0E #0E4B11
monochromatic
#10051A #10051A #2F0E4B #4F187F #7021B2

Accessibility & contrast

On white

16.34
#2F0E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F0E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0E4B
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E4B#FFFFFF#000000##FFFFFF
##2F0E4B1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2A1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0e4b;
/* rgb */ color: rgb(47, 14, 75);
/* oklch */ color: oklch(25.6% 0.106 304.4);
Tailwind
colors: {
  custom: {
    50: '#6b507e',
    500: '#2f0e4b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e4b;
$custom-light: #6b507e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e4b",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 272.459,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25568,
    "c": 0.10635,
    "h": 304.4
  },
  "luminance": 0.01426
}

Semantic roles & 50–950 ramp

primary
#2F0E4B
secondary
#57862F
accent
#EB3C8D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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