#2F1049#2F1049

#2F1049 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.101 H 305.1°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2F1049
RGBrgb(47, 16, 73)
HSLhsl(273, 64%, 17%)
HSVhsv(273, 78%, 29%)
CMYKcmyk(35.6%, 78.1%, 0%, 71.4%)
CIE-LABlab(12.33, 27.78, -29.12)
CIE-LCHlch(12.33, 40.25, 313.65°)
OKLaboklab(25.65% 0.0582 -0.0827)
OKLCHoklch(25.65% 0.101 305.1)
XYZxyz(2.5599, 1.4560, 6.4482)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1049 #2A4910
analogous
#131049 #2F1049 #491046
triadic
#2F1049 #492F10 #10492F
tetradic
#2F1049 #491310 #2A4910 #104649
square
#2F1049 #491310 #2A4910 #104649
split-complementary
#2F1049 #464910 #104913
monochromatic
#100619 #100619 #2F1049 #4F1B7B #7026AD

Accessibility & contrast

On white

16.26
#2F1049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1049 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1049
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1049#FFFFFF#000000##FFFFFF
##2F10491.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#2A1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1049;
/* rgb */ color: rgb(47, 16, 73);
/* oklch */ color: oklch(25.7% 0.101 305.1);
Tailwind
colors: {
  custom: {
    50: '#6a517c',
    500: '#2f1049',
    950: '#000000',
  },
}
SCSS
$custom: #2f1049;
$custom-light: #6a517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1049",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 272.632,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2565,
    "c": 0.10117,
    "h": 305.1
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#2F1049
secondary
#578332
accent
#E7418D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1049

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

Preview Lab → · Contrast checker → · Palette generator →

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