#2F1041#2F1041

#2F1041 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.091 H 310.5°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2F1041
RGBrgb(47, 16, 65)
HSLhsl(278, 60%, 16%)
HSVhsv(278, 75%, 25%)
CMYKcmyk(27.7%, 75.4%, 0%, 74.5%)
CIE-LABlab(11.67, 25.61, -24.58)
CIE-LCHlch(11.67, 35.50, 316.18°)
OKLaboklab(24.97% 0.0593 -0.0694)
OKLCHoklch(24.97% 0.091 310.5)
XYZxyz(2.3115, 1.3566, 5.1401)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1041 #224110
analogous
#161041 #2F1041 #41103A
triadic
#2F1041 #412F10 #10412F
tetradic
#2F1041 #411610 #224110 #103A41
square
#2F1041 #411610 #224110 #103A41
split-complementary
#2F1041 #3A4110 #104116
monochromatic
#120619 #120619 #2F1041 #531C72 #7628A3

Accessibility & contrast

On white

16.52
#2F1041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F1041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1041
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1041#FFFFFF#000000##FFFFFF
##2F10411.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#091F40
Tritanopia (blue-blind)
#2D1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1041;
/* rgb */ color: rgb(47, 16, 65);
/* oklch */ color: oklch(25.0% 0.091 310.5);
Tailwind
colors: {
  custom: {
    50: '#6a5176',
    500: '#2f1041',
    950: '#000000',
  },
}
SCSS
$custom: #2f1041;
$custom-light: #6a5176;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1041",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 277.959,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24969,
    "c": 0.0913,
    "h": 310.5
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#2F1041
secondary
#4D7B32
accent
#E4447F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1041

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

Preview Lab → · Contrast checker → · Palette generator →

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