#2F1144#2F1144

#2F1144 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.093 H 308.1°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#2F1144
RGBrgb(47, 17, 68)
HSLhsl(275, 60%, 17%)
HSVhsv(275, 75%, 27%)
CMYKcmyk(30.9%, 75%, 0%, 73.3%)
CIE-LABlab(12.11, 25.86, -25.98)
CIE-LCHlch(12.11, 36.66, 314.86°)
OKLaboklab(25.36% 0.0577 -0.0735)
OKLCHoklch(25.36% 0.093 308.1)
XYZxyz(2.4159, 1.4226, 5.6150)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1144 #264411
analogous
#161144 #2F1144 #441140
triadic
#2F1144 #442F11 #11442F
tetradic
#2F1144 #441611 #264411 #114044
square
#2F1144 #441611 #264411 #114044
split-complementary
#2F1144 #404411 #114416
monochromatic
#110618 #110618 #2F1144 #511D75 #7329A6

Accessibility & contrast

On white

16.35
#2F1144 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1144
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1144#FFFFFF#000000##FFFFFF
##2F11441.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#072043
Tritanopia (blue-blind)
#2C1C28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1144;
/* rgb */ color: rgb(47, 17, 68);
/* oklch */ color: oklch(25.4% 0.093 308.1);
Tailwind
colors: {
  custom: {
    50: '#6a5178',
    500: '#2f1144',
    950: '#000000',
  },
}
SCSS
$custom: #2f1144;
$custom-light: #6a5178;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1144",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 68
  },
  "hsl": {
    "h": 275.294,
    "s": 60,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25362,
    "c": 0.09344,
    "h": 308.1
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#2F1144
secondary
#527E33
accent
#E34586
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1144

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

Preview Lab → · Contrast checker → · Palette generator →

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