#2F1346#2F1346

#2F1346 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.093 H 306.2°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2F1346
RGBrgb(47, 19, 70)
HSLhsl(273, 57%, 17%)
HSVhsv(273, 73%, 27%)
CMYKcmyk(32.9%, 72.9%, 0%, 72.5%)
CIE-LABlab(12.69, 25.26, -26.45)
CIE-LCHlch(12.69, 36.57, 313.68°)
OKLaboklab(25.83% 0.0547 -0.0749)
OKLCHoklch(25.83% 0.093 306.2)
XYZxyz(2.5104, 1.5123, 5.9528)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1346 #2A4613
analogous
#161346 #2F1346 #461344
triadic
#2F1346 #462F13 #13462F
tetradic
#2F1346 #461613 #2A4613 #134446
square
#2F1346 #461613 #2A4613 #134446
split-complementary
#2F1346 #444613 #134616
monochromatic
#100718 #100718 #2F1346 #4F2076 #702DA6

Accessibility & contrast

On white

16.12
#2F1346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F1346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1346
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1346#FFFFFF#000000##FFFFFF
##2F13461.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#072145
Tritanopia (blue-blind)
#2B1E2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1346;
/* rgb */ color: rgb(47, 19, 70);
/* oklch */ color: oklch(25.8% 0.093 306.2);
Tailwind
colors: {
  custom: {
    50: '#6a537a',
    500: '#2f1346',
    950: '#000000',
  },
}
SCSS
$custom: #2f1346;
$custom-light: #6a537a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1346",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 70
  },
  "hsl": {
    "h": 272.941,
    "s": 57.303,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25829,
    "c": 0.09277,
    "h": 306.2
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#2F1346
secondary
#577F36
accent
#E1478C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1346

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

Preview Lab → · Contrast checker → · Palette generator →

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