#2F1F44#2F1F44

#2F1F44 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.068 H 302.1°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2F1F44
RGBrgb(47, 31, 68)
HSLhsl(266, 37%, 19%)
HSVhsv(266, 54%, 27%)
CMYKcmyk(30.9%, 54.4%, 0%, 73.3%)
CIE-LABlab(15.50, 16.90, -20.56)
CIE-LCHlch(15.50, 26.62, 309.42°)
OKLaboklab(27.85% 0.0363 -0.0577)
OKLCHoklch(27.85% 0.068 302.1)
XYZxyz(2.7054, 2.0017, 5.7116)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F44 #34441F
analogous
#1F2244 #2F1F44 #421F44
triadic
#2F1F44 #442F1F #1F442F
tetradic
#2F1F44 #441F22 #34441F #1F4442
square
#2F1F44 #441F22 #34441F #1F4442
split-complementary
#2F1F44 #44421F #22441F
monochromatic
#0F0A15 #120C1A #2F1F44 #4C326E #694598

Accessibility & contrast

On white

15.00
#2F1F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1F44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F44
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F44#FFFFFF#000000##FFFFFF
##2F1F441.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142645
Deuteranopia (green-blind)
#182743
Tritanopia (blue-blind)
#2B262E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1f44;
/* rgb */ color: rgb(47, 31, 68);
/* oklch */ color: oklch(27.8% 0.068 302.1);
Tailwind
colors: {
  custom: {
    50: '#695b78',
    500: '#2f1f44',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f44;
$custom-light: #695b78;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f44",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 68
  },
  "hsl": {
    "h": 265.946,
    "s": 37.374,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27846,
    "c": 0.06816,
    "h": 302.1
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#2F1F44
secondary
#637846
accent
#CD5A9C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F1F44

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

Preview Lab → · Contrast checker → · Palette generator →

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