#2F1550#2F1550

#2F1550 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.103 H 299.7°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#2F1550
RGBrgb(47, 21, 80)
HSLhsl(266, 58%, 20%)
HSVhsv(266, 74%, 31%)
CMYKcmyk(41.3%, 73.7%, 0%, 68.6%)
CIE-LABlab(13.94, 26.96, -31.32)
CIE-LCHlch(13.94, 41.33, 310.72°)
OKLaboklab(27% 0.0509 -0.0892)
OKLCHoklch(27% 0.103 299.7)
XYZxyz(2.8881, 1.7198, 7.7677)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1550 #365015
analogous
#151850 #2F1550 #4D1550
triadic
#2F1550 #502F15 #15502F
tetradic
#2F1550 #501518 #365015 #15504D
square
#2F1550 #501518 #365015 #15504D
split-complementary
#2F1550 #504D15 #185015
monochromatic
#0E0618 #130820 #2F1550 #4B2280 #682EB1

Accessibility & contrast

On white

15.62
#2F1550 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1550
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1550#FFFFFF#000000##FFFFFF
##2F15501.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#282330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1550;
/* rgb */ color: rgb(47, 21, 80);
/* oklch */ color: oklch(27.0% 0.103 299.7);
Tailwind
colors: {
  custom: {
    50: '#6b5482',
    500: '#2f1550',
    950: '#000000',
  },
}
SCSS
$custom: #2f1550;
$custom-light: #6b5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1550",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 80
  },
  "hsl": {
    "h": 266.441,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26995,
    "c": 0.10272,
    "h": 299.7
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

primary
#2F1550
secondary
#658839
accent
#E2469D
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1550

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

Preview Lab → · Contrast checker → · Palette generator →

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