#2F0F54#2F0F54

#2F0F54 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.116 H 299.3°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2F0F54
RGBrgb(47, 15, 84)
HSLhsl(268, 70%, 19%)
HSVhsv(268, 82%, 33%)
CMYKcmyk(44%, 82.1%, 0%, 67.1%)
CIE-LABlab(13.14, 31.38, -35.35)
CIE-LCHlch(13.14, 47.27, 311.60°)
OKLaboklab(26.54% 0.0567 -0.101)
OKLCHoklch(26.54% 0.116 299.3)
XYZxyz(2.9429, 1.5860, 8.5369)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F54 #34540F
analogous
#0F1254 #2F0F54 #520F54
triadic
#2F0F54 #542F0F #0F542F
tetradic
#2F0F54 #540F12 #34540F #0F5452
square
#2F0F54 #540F12 #34540F #0F5452
split-complementary
#2F0F54 #54520F #12540F
monochromatic
#0F051A #120620 #2F0F54 #4C1888 #6922BC

Accessibility & contrast

On white

15.94
#2F0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F54
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F54#FFFFFF#000000##FFFFFF
##2F0F541.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#262131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0f54;
/* rgb */ color: rgb(47, 15, 84);
/* oklch */ color: oklch(26.5% 0.116 299.3);
Tailwind
colors: {
  custom: {
    50: '#6c5185',
    500: '#2f0f54',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f54;
$custom-light: #6c5185;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f54",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 267.826,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26542,
    "c": 0.11588,
    "h": 299.3
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#2F0F54
secondary
#638E31
accent
#ED3B9A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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