#2F0B56#2F0B56

#2F0B56 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.123 H 299.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2F0B56
RGBrgb(47, 11, 86)
HSLhsl(269, 77%, 19%)
HSVhsv(269, 87%, 34%)
CMYKcmyk(45.3%, 87.2%, 0%, 66.3%)
CIE-LABlab(12.71, 33.77, -37.43)
CIE-LCHlch(12.71, 50.41, 312.06°)
OKLaboklab(26.3% 0.0597 -0.1071)
OKLCHoklch(26.3% 0.123 299.1)
XYZxyz(2.9712, 1.5155, 8.9383)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B56 #32560B
analogous
#0B0D56 #2F0B56 #550B56
triadic
#2F0B56 #562F0B #0B562F
tetradic
#2F0B56 #560B0D #32560B #0B5655
square
#2F0B56 #560B0D #32560B #0B5655
split-complementary
#2F0B56 #56550B #0D560B
monochromatic
#0F031B #110420 #2F0B56 #4D128C #6A19C3

Accessibility & contrast

On white

16.11
#2F0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F0B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B56
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B56#FFFFFF#000000##FFFFFF
##2F0B561.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#252031
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0b56;
/* rgb */ color: rgb(47, 11, 86);
/* oklch */ color: oklch(26.3% 0.123 299.1);
Tailwind
colors: {
  custom: {
    50: '#6d4f86',
    500: '#2f0b56',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b56;
$custom-light: #6d4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b56",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 268.8,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26297,
    "c": 0.12263,
    "h": 299.1
  },
  "luminance": 0.01516
}

Semantic roles & 50–950 ramp

primary
#2F0B56
secondary
#60912B
accent
#F43498
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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