#2F1849#2F1849

#2F1849 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.088 H 302.5°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2F1849
RGBrgb(47, 24, 73)
HSLhsl(268, 51%, 19%)
HSVhsv(268, 67%, 29%)
CMYKcmyk(35.6%, 67.1%, 0%, 71.4%)
CIE-LABlab(14.05, 23.05, -26.33)
CIE-LCHlch(14.05, 35.00, 311.20°)
OKLaboklab(26.89% 0.0475 -0.0746)
OKLCHoklch(26.89% 0.088 302.5)
XYZxyz(2.7012, 1.7386, 6.4953)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1849 #324918
analogous
#181A49 #2F1849 #481849
triadic
#2F1849 #492F18 #18492F
tetradic
#2F1849 #49181A #324918 #184948
square
#2F1849 #49181A #324918 #184948
split-complementary
#2F1849 #494818 #1A4918
monochromatic
#0F0817 #11091B #2F1849 #4D2777 #6A36A5

Accessibility & contrast

On white

15.58
#2F1849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1849 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1849
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1849#FFFFFF#000000##FFFFFF
##2F18491.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01234B
Deuteranopia (green-blind)
#0A2448
Tritanopia (blue-blind)
#2A222D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1849;
/* rgb */ color: rgb(47, 24, 73);
/* oklch */ color: oklch(26.9% 0.088 302.5);
Tailwind
colors: {
  custom: {
    50: '#6a567c',
    500: '#2f1849',
    950: '#000000',
  },
}
SCSS
$custom: #2f1849;
$custom-light: #6a567c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1849",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 73
  },
  "hsl": {
    "h": 268.163,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26893,
    "c": 0.08842,
    "h": 302.5
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#2F1849
secondary
#60803D
accent
#DA4E98
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1849

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

Preview Lab → · Contrast checker → · Palette generator →

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