#2F1343#2F1343

#2F1343 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.089 H 308.2°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2F1343
RGBrgb(47, 19, 67)
HSLhsl(275, 56%, 17%)
HSVhsv(275, 72%, 26%)
CMYKcmyk(29.9%, 71.6%, 0%, 73.7%)
CIE-LABlab(12.45, 24.42, -24.73)
CIE-LCHlch(12.45, 34.76, 314.64°)
OKLaboklab(25.58% 0.055 -0.0699)
OKLCHoklch(25.58% 0.089 308.2)
XYZxyz(2.4181, 1.4754, 5.4665)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1343 #274313
analogous
#171343 #2F1343 #43133F
triadic
#2F1343 #432F13 #13432F
tetradic
#2F1343 #431713 #274313 #133F43
square
#2F1343 #431713 #274313 #133F43
split-complementary
#2F1343 #3F4313 #134317
monochromatic
#110718 #110718 #2F1343 #502173 #722EA2

Accessibility & contrast

On white

16.22
#2F1343 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1343
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1343#FFFFFF#000000##FFFFFF
##2F13431.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#0B2142
Tritanopia (blue-blind)
#2C1D29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1343;
/* rgb */ color: rgb(47, 19, 67);
/* oklch */ color: oklch(25.6% 0.089 308.2);
Tailwind
colors: {
  custom: {
    50: '#6a5377',
    500: '#2f1343',
    950: '#000000',
  },
}
SCSS
$custom: #2f1343;
$custom-light: #6a5377;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1343",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 67
  },
  "hsl": {
    "h": 275,
    "s": 55.814,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25584,
    "c": 0.08889,
    "h": 308.2
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#2F1343
secondary
#537C36
accent
#DF4987
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2F1343

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

Preview Lab → · Contrast checker → · Palette generator →

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