#2F1742#2F1742

#2F1742 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.081 H 307.5°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1742
RGBrgb(47, 23, 66)
HSLhsl(273, 48%, 17%)
HSVhsv(273, 65%, 26%)
CMYKcmyk(28.8%, 65.2%, 0%, 74.1%)
CIE-LABlab(13.29, 21.67, -22.68)
CIE-LCHlch(13.29, 31.37, 313.70°)
OKLaboklab(26.17% 0.049 -0.0639)
OKLCHoklch(26.17% 0.081 307.5)
XYZxyz(2.4619, 1.6105, 5.3344)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1742 #2A4217
analogous
#191742 #2F1742 #421740
triadic
#2F1742 #422F17 #17422F
tetradic
#2F1742 #421917 #2A4217 #174042
square
#2F1742 #421917 #2A4217 #174042
split-complementary
#2F1742 #404217 #174219
monochromatic
#100817 #100817 #2F1742 #4F276F #70379D

Accessibility & contrast

On white

15.89
#2F1742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1742
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1742#FFFFFF#000000##FFFFFF
##2F17421.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1742;
/* rgb */ color: rgb(47, 23, 66);
/* oklch */ color: oklch(26.2% 0.081 307.5);
Tailwind
colors: {
  custom: {
    50: '#695576',
    500: '#2f1742',
    950: '#000000',
  },
}
SCSS
$custom: #2f1742;
$custom-light: #695576;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1742",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 66
  },
  "hsl": {
    "h": 273.488,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26174,
    "c": 0.0805,
    "h": 307.5
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#2F1742
secondary
#57793C
accent
#D8508C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F1742

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

Preview Lab → · Contrast checker → · Palette generator →

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