#2F1348#2F1348

#2F1348 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.095 H 304.9°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1348
RGBrgb(47, 19, 72)
HSLhsl(272, 58%, 18%)
HSVhsv(272, 74%, 28%)
CMYKcmyk(34.7%, 73.6%, 0%, 71.8%)
CIE-LABlab(12.85, 25.82, -27.58)
CIE-LCHlch(12.85, 37.78, 313.11°)
OKLaboklab(26% 0.0545 -0.0782)
OKLCHoklch(26% 0.095 304.9)
XYZxyz(2.5746, 1.5380, 6.2909)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1348 #2C4813
analogous
#141348 #2F1348 #481346
triadic
#2F1348 #482F13 #13482F
tetradic
#2F1348 #481413 #2C4813 #134648
square
#2F1348 #481413 #2C4813 #134648
split-complementary
#2F1348 #464813 #134814
monochromatic
#100618 #100618 #2F1348 #4F2078 #6E2DA9

Accessibility & contrast

On white

16.06
#2F1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1348
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1348#FFFFFF#000000##FFFFFF
##2F13481.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#042147
Tritanopia (blue-blind)
#2A1F2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1348;
/* rgb */ color: rgb(47, 19, 72);
/* oklch */ color: oklch(26.0% 0.095 304.9);
Tailwind
colors: {
  custom: {
    50: '#6a537b',
    500: '#2f1348',
    950: '#000000',
  },
}
SCSS
$custom: #2f1348;
$custom-light: #6a537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1348",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 271.698,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25997,
    "c": 0.09536,
    "h": 304.9
  },
  "luminance": 0.01538
}

Semantic roles & 50–950 ramp

primary
#2F1348
secondary
#598136
accent
#E14690
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1348

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

Preview Lab → · Contrast checker → · Palette generator →

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