#2F0948#2F0948

#2F0948 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.109 H 307.3°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#2F0948
RGBrgb(47, 9, 72)
HSLhsl(276, 78%, 16%)
HSVhsv(276, 88%, 28%)
CMYKcmyk(34.7%, 87.5%, 0%, 71.8%)
CIE-LABlab(11.05, 30.90, -30.50)
CIE-LCHlch(11.05, 43.42, 315.38°)
OKLaboklab(24.72% 0.0661 -0.0867)
OKLCHoklch(24.72% 0.109 307.3)
XYZxyz(2.4394, 1.2676, 6.2458)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0948 #224809
analogous
#0F0948 #2F0948 #480941
triadic
#2F0948 #482F09 #09482F
tetradic
#2F0948 #480F09 #224809 #094148
square
#2F0948 #480F09 #224809 #094148
split-complementary
#2F0948 #414809 #09480F
monochromatic
#12031B #12031B #2F0948 #53107E #7617B5

Accessibility & contrast

On white

16.75
#2F0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0948
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0948#FFFFFF#000000##FFFFFF
##2F09481.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#2B1929
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0948;
/* rgb */ color: rgb(47, 9, 72);
/* oklch */ color: oklch(24.7% 0.109 307.3);
Tailwind
colors: {
  custom: {
    50: '#6b4d7b',
    500: '#2f0948',
    950: '#000000',
  },
}
SCSS
$custom: #2f0948;
$custom-light: #6b4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0948",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 276.19,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24719,
    "c": 0.10906,
    "h": 307.3
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#2F0948
secondary
#4D8527
accent
#F43480
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0948

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

Preview Lab → · Contrast checker → · Palette generator →

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