#2F0F51#2F0F51

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

Color values

HEX#2F0F51
RGBrgb(47, 15, 81)
HSLhsl(269, 69%, 19%)
HSVhsv(269, 81%, 32%)
CMYKcmyk(42%, 81.5%, 0%, 68.2%)
CIE-LABlab(12.86, 30.54, -33.77)
CIE-LCHlch(12.86, 45.53, 312.12°)
OKLaboklab(26.25% 0.0575 -0.0964)
OKLCHoklch(26.25% 0.112 300.8)
XYZxyz(2.8280, 1.5400, 7.9313)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F51 #31510F
analogous
#0F1051 #2F0F51 #500F51
triadic
#2F0F51 #512F0F #0F512F
tetradic
#2F0F51 #510F10 #31510F #0F5150
square
#2F0F51 #510F10 #31510F #0F5150
split-complementary
#2F0F51 #51500F #10510F
monochromatic
#0F051A #11051D #2F0F51 #4D1985 #6B22B8

Accessibility & contrast

On white

16.06
#2F0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F51
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F51#FFFFFF#000000##FFFFFF
##2F0F511.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#27202F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0f51;
/* rgb */ color: rgb(47, 15, 81);
/* oklch */ color: oklch(26.3% 0.112 300.8);
Tailwind
colors: {
  custom: {
    50: '#6c5182',
    500: '#2f0f51',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f51;
$custom-light: #6c5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f51",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 269.091,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26254,
    "c": 0.11227,
    "h": 300.8
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#2F0F51
secondary
#5F8B31
accent
#EC3C97
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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