#2F1745#2F1745

#2F1745 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.085 H 305.4°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1745
RGBrgb(47, 23, 69)
HSLhsl(271, 50%, 18%)
HSVhsv(271, 67%, 27%)
CMYKcmyk(31.9%, 66.7%, 0%, 72.9%)
CIE-LABlab(13.51, 22.52, -24.42)
CIE-LCHlch(13.51, 33.22, 312.68°)
OKLaboklab(26.4% 0.049 -0.069)
OKLCHoklch(26.4% 0.085 305.4)
XYZxyz(2.5526, 1.6468, 5.8125)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1745 #2D4517
analogous
#181745 #2F1745 #451744
triadic
#2F1745 #452F17 #17452F
tetradic
#2F1745 #451817 #2D4517 #174445
square
#2F1745 #451817 #2D4517 #174445
split-complementary
#2F1745 #444517 #174518
monochromatic
#100817 #100817 #2F1745 #4E2673 #6E36A1

Accessibility & contrast

On white

15.80
#2F1745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1745 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1745
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1745#FFFFFF#000000##FFFFFF
##2F17451.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042246
Deuteranopia (green-blind)
#0E2344
Tritanopia (blue-blind)
#2B202B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1745;
/* rgb */ color: rgb(47, 23, 69);
/* oklch */ color: oklch(26.4% 0.085 305.4);
Tailwind
colors: {
  custom: {
    50: '#695579',
    500: '#2f1745',
    950: '#000000',
  },
}
SCSS
$custom: #2f1745;
$custom-light: #695579;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1745",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 271.304,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26404,
    "c": 0.08463,
    "h": 305.4
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#2F1745
secondary
#5B7C3C
accent
#DA4E91
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1745

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

Preview Lab → · Contrast checker → · Palette generator →

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