#2F0C4B#2F0C4B

#2F0C4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.109 H 304.9°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2F0C4B
RGBrgb(47, 12, 75)
HSLhsl(273, 72%, 17%)
HSVhsv(273, 84%, 29%)
CMYKcmyk(37.3%, 84%, 0%, 70.6%)
CIE-LABlab(11.79, 30.35, -31.37)
CIE-LCHlch(11.79, 43.65, 314.05°)
OKLaboklab(25.33% 0.0623 -0.0893)
OKLCHoklch(25.33% 0.109 304.9)
XYZxyz(2.5735, 1.3753, 6.7851)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C4B #284B0C
analogous
#0F0C4B #2F0C4B #4B0C48
triadic
#2F0C4B #4B2F0C #0C4B2F
tetradic
#2F0C4B #4B0F0C #284B0C #0C484B
square
#2F0C4B #4B0F0C #284B0C #0C484B
split-complementary
#2F0C4B #484B0C #0C4B0F
monochromatic
#11041A #11041A #2F0C4B #501480 #711DB5

Accessibility & contrast

On white

16.47
#2F0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C4B
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C4B#FFFFFF#000000##FFFFFF
##2F0C4B1.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#2A1C2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0c4b;
/* rgb */ color: rgb(47, 12, 75);
/* oklch */ color: oklch(25.3% 0.109 304.9);
Tailwind
colors: {
  custom: {
    50: '#6b4f7e',
    500: '#2f0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c4b;
$custom-light: #6b4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c4b",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 273.333,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25328,
    "c": 0.10889,
    "h": 304.9
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#2F0C4B
secondary
#54872C
accent
#EF398A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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