#2F0F5C#2F0F5C

#2F0F5C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.125 H 295.6°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2F0F5C
RGBrgb(47, 15, 92)
HSLhsl(265, 72%, 21%)
HSVhsv(265, 84%, 36%)
CMYKcmyk(48.9%, 83.7%, 0%, 63.9%)
CIE-LABlab(13.94, 33.66, -39.46)
CIE-LCHlch(13.94, 51.87, 310.46°)
OKLaboklab(27.34% 0.0543 -0.1131)
OKLCHoklch(27.34% 0.125 295.6)
XYZxyz(3.2744, 1.7186, 10.2823)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F5C #3C5C0F
analogous
#0F155C #2F0F5C #550F5C
triadic
#2F0F5C #5C2F0F #0F5C2F
tetradic
#2F0F5C #5C0F15 #3C5C0F #0F5C55
square
#2F0F5C #5C0F15 #3C5C0F #0F5C55
split-complementary
#2F0F5C #5C550F #155C0F
monochromatic
#0D041A #140627 #2F0F5C #4A1891 #6520C5

Accessibility & contrast

On white

15.63
#2F0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F5C
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F5C#FFFFFF#000000##FFFFFF
##2F0F5C1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#222435
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f0f5c;
/* rgb */ color: rgb(47, 15, 92);
/* oklch */ color: oklch(27.3% 0.125 295.6);
Tailwind
colors: {
  custom: {
    50: '#6d528b',
    500: '#2f0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f5c;
$custom-light: #6d528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f5c",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 264.935,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27338,
    "c": 0.12546,
    "h": 295.6
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#2F0F5C
secondary
#6C9531
accent
#EF39A3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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