#2F0E40#2F0E40

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

Color values

HEX#2F0E40
RGBrgb(47, 14, 64)
HSLhsl(280, 64%, 15%)
HSVhsv(280, 78%, 25%)
CMYKcmyk(26.6%, 78.1%, 0%, 74.9%)
CIE-LABlab(11.20, 26.44, -24.63)
CIE-LCHlch(11.20, 36.14, 317.03°)
OKLaboklab(24.61% 0.0621 -0.0695)
OKLCHoklch(24.61% 0.093 311.7)
XYZxyz(2.2546, 1.2886, 4.9795)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E40 #1F400E
analogous
#160E40 #2F0E40 #400E38
triadic
#2F0E40 #402F0E #0E402F
tetradic
#2F0E40 #40160E #1F400E #0E3840
square
#2F0E40 #40160E #1F400E #0E3840
split-complementary
#2F0E40 #38400E #0E4016
monochromatic
#120519 #120519 #2F0E40 #541972 #7924A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F0E40#FFFFFF#000000##FFFFFF
##2F0E401.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)
#001C41
Deuteranopia (green-blind)
#081F3F
Tritanopia (blue-blind)
#2D1925
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0e40;
/* rgb */ color: rgb(47, 14, 64);
/* oklch */ color: oklch(24.6% 0.093 311.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f75',
    500: '#2f0e40',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e40;
$custom-light: #6a4f75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e40",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 279.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24607,
    "c": 0.09322,
    "h": 311.7
  },
  "luminance": 0.01289
}

Semantic roles & 50–950 ramp

primary
#2F0E40
secondary
#497B2F
accent
#E74179
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0E40

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

Preview Lab → · Contrast checker → · Palette generator →

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