#2F1146#2F1146

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

Color values

HEX#2F1146
RGBrgb(47, 17, 70)
HSLhsl(274, 61%, 17%)
HSVhsv(274, 76%, 27%)
CMYKcmyk(32.9%, 75.7%, 0%, 72.5%)
CIE-LABlab(12.27, 26.41, -27.12)
CIE-LCHlch(12.27, 37.85, 314.24°)
OKLaboklab(25.53% 0.0574 -0.0769)
OKLCHoklch(25.53% 0.096 306.7)
XYZxyz(2.4780, 1.4475, 5.9420)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1146 #284611
analogous
#141146 #2F1146 #461143
triadic
#2F1146 #462F11 #11462F
tetradic
#2F1146 #461411 #284611 #114346
square
#2F1146 #461411 #284611 #114346
split-complementary
#2F1146 #434611 #114614
monochromatic
#110619 #110619 #2F1146 #501D77 #7129A8

Accessibility & contrast

On white

16.29
#2F1146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1146
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1146#FFFFFF#000000##FFFFFF
##2F11461.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#042045
Tritanopia (blue-blind)
#2B1D29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1146;
/* rgb */ color: rgb(47, 17, 70);
/* oklch */ color: oklch(25.5% 0.096 306.7);
Tailwind
colors: {
  custom: {
    50: '#6a517a',
    500: '#2f1146',
    950: '#000000',
  },
}
SCSS
$custom: #2f1146;
$custom-light: #6a517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1146",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 273.962,
    "s": 60.92,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2553,
    "c": 0.09594,
    "h": 306.7
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#2F1146
secondary
#548033
accent
#E44489
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1146

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

Preview Lab → · Contrast checker → · Palette generator →

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