#2F0E57#2F0E57

#2F0E57 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.121 H 298.1°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2F0E57
RGBrgb(47, 14, 87)
HSLhsl(267, 72%, 20%)
HSVhsv(267, 84%, 34%)
CMYKcmyk(46%, 83.9%, 0%, 65.9%)
CIE-LABlab(13.27, 32.71, -37.18)
CIE-LCHlch(13.27, 49.52, 311.34°)
OKLaboklab(26.72% 0.0568 -0.1064)
OKLCHoklch(26.72% 0.121 298.1)
XYZxyz(3.0492, 1.6065, 9.1644)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E57 #36570E
analogous
#0E1257 #2F0E57 #530E57
triadic
#2F0E57 #572F0E #0E572F
tetradic
#2F0E57 #570E12 #36570E #0E5753
square
#2F0E57 #570E12 #36570E #0E5753
split-complementary
#2F0E57 #57530E #12570E
monochromatic
#0E041A #130622 #2F0E57 #4B168C #681FC0

Accessibility & contrast

On white

15.89
#2F0E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F0E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0E57
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E57#FFFFFF#000000##FFFFFF
##2F0E571.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#252232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0e57;
/* rgb */ color: rgb(47, 14, 87);
/* oklch */ color: oklch(26.7% 0.121 298.1);
Tailwind
colors: {
  custom: {
    50: '#6d5187',
    500: '#2f0e57',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e57;
$custom-light: #6d5187;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e57",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 87
  },
  "hsl": {
    "h": 267.123,
    "s": 72.277,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2672,
    "c": 0.12062,
    "h": 298.1
  },
  "luminance": 0.01607
}

Semantic roles & 50–950 ramp

primary
#2F0E57
secondary
#659130
accent
#EF399D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0E57

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

Preview Lab → · Contrast checker → · Palette generator →

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