#2F1448#2F1448

#2F1448 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.094 H 304.5°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2F1448
RGBrgb(47, 20, 72)
HSLhsl(271, 57%, 18%)
HSVhsv(271, 72%, 28%)
CMYKcmyk(34.7%, 72.2%, 0%, 71.8%)
CIE-LABlab(13.06, 25.23, -27.23)
CIE-LCHlch(13.06, 37.13, 312.81°)
OKLaboklab(26.15% 0.0532 -0.0772)
OKLCHoklch(26.15% 0.094 304.5)
XYZxyz(2.5919, 1.5725, 6.2966)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1448 #2D4814
analogous
#151448 #2F1448 #481447
triadic
#2F1448 #482F14 #14482F
tetradic
#2F1448 #481514 #2D4814 #144748
square
#2F1448 #481514 #2D4814 #144748
split-complementary
#2F1448 #474814 #144815
monochromatic
#100718 #100718 #2F1448 #4E2178 #6E2FA8

Accessibility & contrast

On white

15.97
#2F1448 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1448 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1448
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1448#FFFFFF#000000##FFFFFF
##2F14481.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#062247
Tritanopia (blue-blind)
#2A1F2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1448;
/* rgb */ color: rgb(47, 20, 72);
/* oklch */ color: oklch(26.2% 0.094 304.5);
Tailwind
colors: {
  custom: {
    50: '#6a537b',
    500: '#2f1448',
    950: '#000000',
  },
}
SCSS
$custom: #2f1448;
$custom-light: #6a537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1448",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 72
  },
  "hsl": {
    "h": 271.154,
    "s": 56.522,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26151,
    "c": 0.09376,
    "h": 304.5
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#2F1448
secondary
#5B8038
accent
#E04891
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1448

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

Preview Lab → · Contrast checker → · Palette generator →

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