#2F0E4C#2F0E4C

#2F0E4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.108 H 303.8°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2F0E4C
RGBrgb(47, 14, 76)
HSLhsl(272, 69%, 18%)
HSVhsv(272, 82%, 30%)
CMYKcmyk(38.2%, 81.6%, 0%, 70.2%)
CIE-LABlab(12.22, 29.65, -31.37)
CIE-LCHlch(12.22, 43.16, 313.39°)
OKLaboklab(25.66% 0.0599 -0.0893)
OKLCHoklch(25.66% 0.108 303.8)
XYZxyz(2.6335, 1.4402, 6.9753)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E4C #2B4C0E
analogous
#100E4C #2F0E4C #4C0E4A
triadic
#2F0E4C #4C2F0E #0E4C2F
tetradic
#2F0E4C #4C100E #2B4C0E #0E4A4C
square
#2F0E4C #4C100E #2B4C0E #0E4A4C
split-complementary
#2F0E4C #4A4C0E #0E4C10
monochromatic
#10051A #10051A #2F0E4C #4F1880 #6F21B3

Accessibility & contrast

On white

16.30
#2F0E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0E4C
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E4C#FFFFFF#000000##FFFFFF
##2F0E4C1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#291D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0e4c;
/* rgb */ color: rgb(47, 14, 76);
/* oklch */ color: oklch(25.7% 0.108 303.8);
Tailwind
colors: {
  custom: {
    50: '#6b507f',
    500: '#2f0e4c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e4c;
$custom-light: #6b507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e4c",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 76
  },
  "hsl": {
    "h": 271.935,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2566,
    "c": 0.10754,
    "h": 303.8
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#2F0E4C
secondary
#58872F
accent
#EC3C8E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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