#2F1048#2F1048

#2F1048 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.100 H 305.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1048
RGBrgb(47, 16, 72)
HSLhsl(273, 64%, 17%)
HSVhsv(273, 78%, 28%)
CMYKcmyk(34.7%, 77.8%, 0%, 71.8%)
CIE-LABlab(12.24, 27.51, -28.56)
CIE-LCHlch(12.24, 39.66, 313.92°)
OKLaboklab(25.56% 0.0584 -0.0811)
OKLCHoklch(25.56% 0.1 305.7)
XYZxyz(2.5270, 1.4428, 6.2750)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1048 #294810
analogous
#131048 #2F1048 #481045
triadic
#2F1048 #482F10 #10482F
tetradic
#2F1048 #481310 #294810 #104548
square
#2F1048 #481310 #294810 #104548
split-complementary
#2F1048 #454810 #104813
monochromatic
#100619 #100619 #2F1048 #501B7A #7026AC

Accessibility & contrast

On white

16.30
#2F1048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1048
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1048#FFFFFF#000000##FFFFFF
##2F10481.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#2B1D2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1048;
/* rgb */ color: rgb(47, 16, 72);
/* oklch */ color: oklch(25.6% 0.100 305.7);
Tailwind
colors: {
  custom: {
    50: '#6a517b',
    500: '#2f1048',
    950: '#000000',
  },
}
SCSS
$custom: #2f1048;
$custom-light: #6a517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1048",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 273.214,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25562,
    "c": 0.09993,
    "h": 305.7
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#2F1048
secondary
#568232
accent
#E7418B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1048

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

Preview Lab → · Contrast checker → · Palette generator →

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