#2F0C51#2F0C51

#2F0C51 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.116 H 301.5°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2F0C51
RGBrgb(47, 12, 81)
HSLhsl(270, 74%, 18%)
HSVhsv(270, 85%, 32%)
CMYKcmyk(42%, 85.2%, 0%, 68.2%)
CIE-LABlab(12.36, 31.97, -34.58)
CIE-LCHlch(12.36, 47.10, 312.75°)
OKLaboklab(25.9% 0.0605 -0.0988)
OKLCHoklch(25.9% 0.116 301.5)
XYZxyz(2.7886, 1.4613, 7.9181)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C51 #2E510C
analogous
#0C0C51 #2F0C51 #510C50
triadic
#2F0C51 #512F0C #0C512F
tetradic
#2F0C51 #510C0C #2E510C #0C5051
square
#2F0C51 #510C0C #2E510C #0C5051
split-complementary
#2F0C51 #50510C #0C510C
monochromatic
#0F041B #10041C #2F0C51 #4E1486 #6D1CBC

Accessibility & contrast

On white

16.25
#2F0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C51
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C51#FFFFFF#000000##FFFFFF
##2F0C511.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#271E2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0c51;
/* rgb */ color: rgb(47, 12, 81);
/* oklch */ color: oklch(25.9% 0.116 301.5);
Tailwind
colors: {
  custom: {
    50: '#6c4f82',
    500: '#2f0c51',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c51;
$custom-light: #6c4f82;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c51",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 270.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25903,
    "c": 0.11584,
    "h": 301.5
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#2F0C51
secondary
#5C8C2C
accent
#F13793
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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