#2F1148#2F1148

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

Color values

HEX#2F1148
RGBrgb(47, 17, 72)
HSLhsl(273, 62%, 17%)
HSVhsv(273, 76%, 28%)
CMYKcmyk(34.7%, 76.4%, 0%, 71.8%)
CIE-LABlab(12.44, 26.96, -28.25)
CIE-LCHlch(12.44, 39.05, 313.67°)
OKLaboklab(25.7% 0.0571 -0.0802)
OKLCHoklch(25.7% 0.098 305.5)
XYZxyz(2.5422, 1.4731, 6.2801)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1148 #2A4811
analogous
#131148 #2F1148 #481146
triadic
#2F1148 #482F11 #11482F
tetradic
#2F1148 #481311 #2A4811 #114648
square
#2F1148 #481311 #2A4811 #114648
split-complementary
#2F1148 #464811 #114813
monochromatic
#100619 #100619 #2F1148 #4F1D7A #7028AB

Accessibility & contrast

On white

16.22
#2F1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1148
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1148#FFFFFF#000000##FFFFFF
##2F11481.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#022047
Tritanopia (blue-blind)
#2B1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1148;
/* rgb */ color: rgb(47, 17, 72);
/* oklch */ color: oklch(25.7% 0.098 305.5);
Tailwind
colors: {
  custom: {
    50: '#6a527b',
    500: '#2f1148',
    950: '#000000',
  },
}
SCSS
$custom: #2f1148;
$custom-light: #6a527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1148",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 272.727,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25702,
    "c": 0.09845,
    "h": 305.5
  },
  "luminance": 0.01473
}

Semantic roles & 50–950 ramp

primary
#2F1148
secondary
#578233
accent
#E5438D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1148

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

Preview Lab → · Contrast checker → · Palette generator →

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