#2F1045#2F1045

#2F1045 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.096 H 307.7°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1045
RGBrgb(47, 16, 69)
HSLhsl(275, 62%, 17%)
HSVhsv(275, 77%, 27%)
CMYKcmyk(31.9%, 76.8%, 0%, 72.9%)
CIE-LABlab(11.99, 26.69, -26.88)
CIE-LCHlch(11.99, 37.88, 314.80°)
OKLaboklab(25.3% 0.0588 -0.0761)
OKLCHoklch(25.3% 0.096 307.7)
XYZxyz(2.4315, 1.4046, 5.7721)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1045 #264510
analogous
#151045 #2F1045 #451041
triadic
#2F1045 #452F10 #10452F
tetradic
#2F1045 #451510 #264510 #104145
square
#2F1045 #451510 #264510 #104145
split-complementary
#2F1045 #414510 #104515
monochromatic
#110619 #110619 #2F1045 #511C77 #7327A8

Accessibility & contrast

On white

16.39
#2F1045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F1045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1045
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1045#FFFFFF#000000##FFFFFF
##2F10451.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#042044
Tritanopia (blue-blind)
#2B1C29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1045;
/* rgb */ color: rgb(47, 16, 69);
/* oklch */ color: oklch(25.3% 0.096 307.7);
Tailwind
colors: {
  custom: {
    50: '#6a5179',
    500: '#2f1045',
    950: '#000000',
  },
}
SCSS
$custom: #2f1045;
$custom-light: #6a5179;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1045",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 275.094,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25303,
    "c": 0.09623,
    "h": 307.7
  },
  "luminance": 0.01405
}

Semantic roles & 50–950 ramp

primary
#2F1045
secondary
#527F32
accent
#E54286
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1045

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

Preview Lab → · Contrast checker → · Palette generator →

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