#2F0F6A#2F0F6A

#2F0F6A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.142 H 290.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2F0F6A
RGBrgb(47, 15, 106)
HSLhsl(261, 75%, 24%)
HSVhsv(261, 86%, 42%)
CMYKcmyk(55.7%, 85.8%, 0%, 58.4%)
CIE-LABlab(15.42, 37.69, -46.32)
CIE-LCHlch(15.42, 59.71, 309.13°)
OKLaboklab(28.81% 0.0492 -0.1332)
OKLCHoklch(28.81% 0.142 290.3)
XYZxyz(3.9439, 1.9864, 13.8085)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F6A #4A6A0F
analogous
#0F1C6A #2F0F6A #5C0F6A
triadic
#2F0F6A #6A2F0F #0F6A2F
tetradic
#2F0F6A #6A0F1C #4A6A0F #0F6A5C
square
#2F0F6A #6A0F1C #4A6A0F #0F6A5C
split-complementary
#2F0F6A #6A5C0F #1C6A0F
monochromatic
#0C041B #170734 #2F0F6A #4717A0 #5F1ED5

Accessibility & contrast

On white

15.03
#2F0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F6A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F6A#FFFFFF#000000##FFFFFF
##2F0F6A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#192A3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f0f6a;
/* rgb */ color: rgb(47, 15, 106);
/* oklch */ color: oklch(28.8% 0.142 290.3);
Tailwind
colors: {
  custom: {
    50: '#705396',
    500: '#2f0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f6a;
$custom-light: #705396;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f6a",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 261.099,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28813,
    "c": 0.142,
    "h": 290.3
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#2F0F6A
secondary
#7BA232
accent
#F236B0
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2F0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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