#2F1249#2F1249

#2F1249 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.098 H 304.6°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2F1249
RGBrgb(47, 18, 73)
HSLhsl(272, 60%, 18%)
HSVhsv(272, 75%, 29%)
CMYKcmyk(35.6%, 75.3%, 0%, 71.4%)
CIE-LABlab(12.72, 26.68, -28.48)
CIE-LCHlch(12.72, 39.02, 313.13°)
OKLaboklab(25.93% 0.0557 -0.0809)
OKLCHoklch(25.93% 0.098 304.6)
XYZxyz(2.5909, 1.5180, 6.4585)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1249 #2C4912
analogous
#131249 #2F1249 #491247
triadic
#2F1249 #492F12 #12492F
tetradic
#2F1249 #491312 #2C4912 #124749
square
#2F1249 #491312 #2C4912 #124749
split-complementary
#2F1249 #474912 #124913
monochromatic
#100619 #100619 #2F1249 #4F1E7A #6E2AAB

Accessibility & contrast

On white

16.11
#2F1249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1249
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1249#FFFFFF#000000##FFFFFF
##2F12491.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#022148
Tritanopia (blue-blind)
#2A1E2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1249;
/* rgb */ color: rgb(47, 18, 73);
/* oklch */ color: oklch(25.9% 0.098 304.6);
Tailwind
colors: {
  custom: {
    50: '#6a527c',
    500: '#2f1249',
    950: '#000000',
  },
}
SCSS
$custom: #2f1249;
$custom-light: #6a527c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1249",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 271.636,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25933,
    "c": 0.0982,
    "h": 304.6
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#2F1249
secondary
#598235
accent
#E44490
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1249

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

Preview Lab → · Contrast checker → · Palette generator →

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