#2F0D54#2F0D54

#2F0D54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.118 H 299.7°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2F0D54
RGBrgb(47, 13, 84)
HSLhsl(269, 73%, 19%)
HSVhsv(269, 85%, 33%)
CMYKcmyk(44%, 84.5%, 0%, 67.1%)
CIE-LABlab(12.81, 32.34, -35.90)
CIE-LCHlch(12.81, 48.31, 312.02°)
OKLaboklab(26.31% 0.0587 -0.1026)
OKLCHoklch(26.31% 0.118 299.7)
XYZxyz(2.9160, 1.5322, 8.5279)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D54 #32540D
analogous
#0D0F54 #2F0D54 #530D54
triadic
#2F0D54 #542F0D #0D542F
tetradic
#2F0D54 #540D0F #32540D #0D5453
square
#2F0D54 #540D0F #32540D #0D5453
split-complementary
#2F0D54 #54530D #0F540D
monochromatic
#0F041A #11051F #2F0D54 #4D1589 #6A1DBE

Accessibility & contrast

On white

16.07
#2F0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F0D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0D54
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D54#FFFFFF#000000##FFFFFF
##2F0D541.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#262030
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0d54;
/* rgb */ color: rgb(47, 13, 84);
/* oklch */ color: oklch(26.3% 0.118 299.7);
Tailwind
colors: {
  custom: {
    50: '#6c5085',
    500: '#2f0d54',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d54;
$custom-light: #6c5085;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d54",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 268.732,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26309,
    "c": 0.11821,
    "h": 299.7
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#2F0D54
secondary
#608F2E
accent
#F03898
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0D54

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

Preview Lab → · Contrast checker → · Palette generator →

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