#2F1740#2F1740

#2F1740 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.078 H 309.0°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2F1740
RGBrgb(47, 23, 64)
HSLhsl(275, 47%, 17%)
HSVhsv(275, 64%, 25%)
CMYKcmyk(26.6%, 64.1%, 0%, 74.9%)
CIE-LABlab(13.15, 21.11, -21.50)
CIE-LCHlch(13.15, 30.13, 314.48°)
OKLaboklab(26.03% 0.0489 -0.0604)
OKLCHoklch(26.03% 0.078 309)
XYZxyz(2.4039, 1.5873, 5.0292)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1740 #284017
analogous
#1B1740 #2F1740 #40173D
triadic
#2F1740 #402F17 #17402F
tetradic
#2F1740 #401B17 #284017 #173D40
square
#2F1740 #401B17 #284017 #173D40
split-complementary
#2F1740 #3D4017 #17401B
monochromatic
#110817 #110817 #2F1740 #50276D #71379A

Accessibility & contrast

On white

15.94
#2F1740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1740
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1740#FFFFFF#000000##FFFFFF
##2F17401.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#12223F
Tritanopia (blue-blind)
#2D1E28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1740;
/* rgb */ color: rgb(47, 23, 64);
/* oklch */ color: oklch(26.0% 0.078 309.0);
Tailwind
colors: {
  custom: {
    50: '#695575',
    500: '#2f1740',
    950: '#000000',
  },
}
SCSS
$custom: #2f1740;
$custom-light: #695575;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1740",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 275.122,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26025,
    "c": 0.07775,
    "h": 309
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#2F1740
secondary
#54773C
accent
#D75188
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F1740

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

Preview Lab → · Contrast checker → · Palette generator →

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