#2F0F5A#2F0F5A

#2F0F5A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.123 H 296.5°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2F0F5A
RGBrgb(47, 15, 90)
HSLhsl(266, 71%, 21%)
HSVhsv(266, 83%, 35%)
CMYKcmyk(47.8%, 83.3%, 0%, 64.7%)
CIE-LABlab(13.73, 33.09, -38.45)
CIE-LCHlch(13.73, 50.73, 310.71°)
OKLaboklab(27.14% 0.0549 -0.1101)
OKLCHoklch(27.14% 0.123 296.5)
XYZxyz(3.1881, 1.6841, 9.8280)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F5A #3A5A0F
analogous
#0F145A #2F0F5A #540F5A
triadic
#2F0F5A #5A2F0F #0F5A2F
tetradic
#2F0F5A #5A0F14 #3A5A0F #0F5A54
square
#2F0F5A #5A0F14 #3A5A0F #0F5A54
split-complementary
#2F0F5A #5A540F #145A0F
monochromatic
#0E041A #140626 #2F0F5A #4A188E #6620C3

Accessibility & contrast

On white

15.71
#2F0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F5A
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F5A#FFFFFF#000000##FFFFFF
##2F0F5A1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#232434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f0f5a;
/* rgb */ color: rgb(47, 15, 90);
/* oklch */ color: oklch(27.1% 0.123 296.5);
Tailwind
colors: {
  custom: {
    50: '#6d5189',
    500: '#2f0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f5a;
$custom-light: #6d5189;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f5a",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 265.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27136,
    "c": 0.12307,
    "h": 296.5
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2F0F5A
secondary
#6A9431
accent
#EE3AA1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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