#2F0F46#2F0F46

#2F0F46 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.099 H 307.3°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2F0F46
RGBrgb(47, 15, 70)
HSLhsl(275, 65%, 17%)
HSVhsv(275, 79%, 27%)
CMYKcmyk(32.9%, 78.6%, 0%, 72.5%)
CIE-LABlab(11.88, 27.50, -27.75)
CIE-LCHlch(11.88, 39.07, 314.74°)
OKLaboklab(25.25% 0.06 -0.0787)
OKLCHoklch(25.25% 0.099 307.3)
XYZxyz(2.4484, 1.3882, 5.9321)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F46 #26460F
analogous
#140F46 #2F0F46 #460F42
triadic
#2F0F46 #462F0F #0F462F
tetradic
#2F0F46 #46140F #26460F #0F4246
square
#2F0F46 #46140F #26460F #0F4246
split-complementary
#2F0F46 #42460F #0F4614
monochromatic
#110519 #110519 #2F0F46 #511A78 #7325AB

Accessibility & contrast

On white

16.44
#2F0F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F0F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F46
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F46#FFFFFF#000000##FFFFFF
##2F0F461.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#022045
Tritanopia (blue-blind)
#2B1B29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0f46;
/* rgb */ color: rgb(47, 15, 70);
/* oklch */ color: oklch(25.3% 0.099 307.3);
Tailwind
colors: {
  custom: {
    50: '#6a507a',
    500: '#2f0f46',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f46;
$custom-light: #6a507a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f46",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 274.909,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25251,
    "c": 0.09895,
    "h": 307.3
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#2F0F46
secondary
#528030
accent
#E84086
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0F46

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

Preview Lab → · Contrast checker → · Palette generator →

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