#2F0F55#2F0F55

#2F0F55 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.117 H 298.8°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2F0F55
RGBrgb(47, 15, 85)
HSLhsl(267, 70%, 20%)
HSVhsv(267, 82%, 33%)
CMYKcmyk(44.7%, 82.4%, 0%, 66.7%)
CIE-LABlab(13.24, 31.67, -35.87)
CIE-LCHlch(13.24, 47.85, 311.44°)
OKLaboklab(26.64% 0.0564 -0.1026)
OKLCHoklch(26.64% 0.117 298.8)
XYZxyz(2.9824, 1.6018, 8.7446)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F55 #35550F
analogous
#0F1255 #2F0F55 #520F55
triadic
#2F0F55 #552F0F #0F552F
tetradic
#2F0F55 #550F12 #35550F #0F5552
square
#2F0F55 #550F12 #35550F #0F5552
split-complementary
#2F0F55 #55520F #12550F
monochromatic
#0E051A #120621 #2F0F55 #4C1889 #6921BD

Accessibility & contrast

On white

15.90
#2F0F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F0F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F55
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F55#FFFFFF#000000##FFFFFF
##2F0F551.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#262231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0f55;
/* rgb */ color: rgb(47, 15, 85);
/* oklch */ color: oklch(26.6% 0.117 298.8);
Tailwind
colors: {
  custom: {
    50: '#6c5186',
    500: '#2f0f55',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f55;
$custom-light: #6c5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f55",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 267.429,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26639,
    "c": 0.11708,
    "h": 298.8
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#2F0F55
secondary
#648F31
accent
#ED3B9C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0F55

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

Preview Lab → · Contrast checker → · Palette generator →

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