#2F0F5E#2F0F5E

#2F0F5E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.128 H 294.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2F0F5E
RGBrgb(47, 15, 94)
HSLhsl(264, 72%, 21%)
HSVhsv(264, 84%, 37%)
CMYKcmyk(50%, 84%, 0%, 63.1%)
CIE-LABlab(14.14, 34.23, -40.47)
CIE-LCHlch(14.14, 53.01, 310.23°)
OKLaboklab(27.54% 0.0536 -0.1161)
OKLCHoklch(27.54% 0.128 294.8)
XYZxyz(3.3629, 1.7540, 10.7489)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F5E #3E5E0F
analogous
#0F175E #2F0F5E #570F5E
triadic
#2F0F5E #5E2F0F #0F5E2F
tetradic
#2F0F5E #5E0F17 #3E5E0F #0F5E57
square
#2F0F5E #5E0F17 #3E5E0F #0F5E57
split-complementary
#2F0F5E #5E570F #175E0F
monochromatic
#0D041A #150729 #2F0F5E #491793 #6420C8

Accessibility & contrast

On white

15.55
#2F0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F0F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F5E
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F5E#FFFFFF#000000##FFFFFF
##2F0F5E1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#212536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f0f5e;
/* rgb */ color: rgb(47, 15, 94);
/* oklch */ color: oklch(27.5% 0.128 294.8);
Tailwind
colors: {
  custom: {
    50: '#6e528c',
    500: '#2f0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f5e;
$custom-light: #6e528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f5e",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 264.304,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27543,
    "c": 0.12784,
    "h": 294.8
  },
  "luminance": 0.01754
}

Semantic roles & 50–950 ramp

primary
#2F0F5E
secondary
#6E9731
accent
#EF39A5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F0F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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