#2F0E4A#2F0E4A

#2F0E4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.105 H 305.0°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2F0E4A
RGBrgb(47, 14, 74)
HSLhsl(273, 68%, 17%)
HSVhsv(273, 81%, 29%)
CMYKcmyk(36.5%, 81.1%, 0%, 71%)
CIE-LABlab(12.04, 29.10, -30.27)
CIE-LCHlch(12.04, 41.99, 313.87°)
OKLaboklab(25.48% 0.0603 -0.0861)
OKLCHoklch(25.48% 0.105 305)
XYZxyz(2.5651, 1.4128, 6.6148)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E4A #294A0E
analogous
#110E4A #2F0E4A #4A0E47
triadic
#2F0E4A #4A2F0E #0E4A2F
tetradic
#2F0E4A #4A110E #294A0E #0E474A
square
#2F0E4A #4A110E #294A0E #0E474A
split-complementary
#2F0E4A #474A0E #0E4A11
monochromatic
#10051A #10051A #2F0E4A #50187D #7021B1

Accessibility & contrast

On white

16.37
#2F0E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F0E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0E4A
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E4A#FFFFFF#000000##FFFFFF
##2F0E4A1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2A1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0e4a;
/* rgb */ color: rgb(47, 14, 74);
/* oklch */ color: oklch(25.5% 0.105 305.0);
Tailwind
colors: {
  custom: {
    50: '#6b507d',
    500: '#2f0e4a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e4a;
$custom-light: #6b507d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e4a",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 273,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25477,
    "c": 0.10515,
    "h": 305
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#2F0E4A
secondary
#56852F
accent
#EB3D8B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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