#2F1741#2F1741

#2F1741 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.079 H 308.2°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2F1741
RGBrgb(47, 23, 65)
HSLhsl(274, 48%, 17%)
HSVhsv(274, 65%, 25%)
CMYKcmyk(27.7%, 64.6%, 0%, 74.5%)
CIE-LABlab(13.22, 21.39, -22.09)
CIE-LCHlch(13.22, 30.75, 314.08°)
OKLaboklab(26.1% 0.049 -0.0621)
OKLCHoklch(26.1% 0.079 308.2)
XYZxyz(2.4326, 1.5988, 5.1805)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1741 #294117
analogous
#1A1741 #2F1741 #41173E
triadic
#2F1741 #412F17 #17412F
tetradic
#2F1741 #411A17 #294117 #173E41
square
#2F1741 #411A17 #294117 #173E41
split-complementary
#2F1741 #3E4117 #17411A
monochromatic
#100817 #100817 #2F1741 #50276E #70379B

Accessibility & contrast

On white

15.91
#2F1741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1741
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1741#FFFFFF#000000##FFFFFF
##2F17411.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082142
Deuteranopia (green-blind)
#112240
Tritanopia (blue-blind)
#2C1F29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1741;
/* rgb */ color: rgb(47, 23, 65);
/* oklch */ color: oklch(26.1% 0.079 308.2);
Tailwind
colors: {
  custom: {
    50: '#695576',
    500: '#2f1741',
    950: '#000000',
  },
}
SCSS
$custom: #2f1741;
$custom-light: #695576;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1741",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 65
  },
  "hsl": {
    "h": 274.286,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26099,
    "c": 0.07912,
    "h": 308.2
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#2F1741
secondary
#56783C
accent
#D7508A
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F1741

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

Preview Lab → · Contrast checker → · Palette generator →

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