#2F0D56#2F0D56

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

Color values

HEX#2F0D56
RGBrgb(47, 13, 86)
HSLhsl(268, 74%, 19%)
HSVhsv(268, 85%, 34%)
CMYKcmyk(45.3%, 84.9%, 0%, 66.3%)
CIE-LABlab(13.01, 32.90, -36.93)
CIE-LCHlch(13.01, 49.46, 311.69°)
OKLaboklab(26.51% 0.058 -0.1057)
OKLCHoklch(26.51% 0.121 298.8)
XYZxyz(2.9955, 1.5640, 8.9464)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D56 #34560D
analogous
#0D1056 #2F0D56 #540D56
triadic
#2F0D56 #562F0D #0D562F
tetradic
#2F0D56 #560D10 #34560D #0D5654
square
#2F0D56 #560D10 #34560D #0D5654
split-complementary
#2F0D56 #56540D #10560D
monochromatic
#0F041B #120521 #2F0D56 #4C158B #691DC0

Accessibility & contrast

On white

16.00
#2F0D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0D56
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D56#FFFFFF#000000##FFFFFF
##2F0D561.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#252131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0d56;
/* rgb */ color: rgb(47, 13, 86);
/* oklch */ color: oklch(26.5% 0.121 298.8);
Tailwind
colors: {
  custom: {
    50: '#6c5086',
    500: '#2f0d56',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d56;
$custom-light: #6c5086;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d56",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 267.945,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26507,
    "c": 0.12054,
    "h": 298.8
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#2F0D56
secondary
#63912E
accent
#F0379A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0D56

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

Preview Lab → · Contrast checker → · Palette generator →

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