#2F1748#2F1748

#2F1748 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.089 H 303.5°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1748
RGBrgb(47, 23, 72)
HSLhsl(269, 52%, 19%)
HSVhsv(269, 68%, 28%)
CMYKcmyk(34.7%, 68.1%, 0%, 71.8%)
CIE-LABlab(13.74, 23.39, -26.14)
CIE-LCHlch(13.74, 35.08, 311.82°)
OKLaboklab(26.64% 0.049 -0.074)
OKLCHoklch(26.64% 0.089 303.5)
XYZxyz(2.6481, 1.6850, 6.3154)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1748 #304817
analogous
#171748 #2F1748 #471748
triadic
#2F1748 #482F17 #17482F
tetradic
#2F1748 #481717 #304817 #174847
square
#2F1748 #481717 #304817 #174847
split-complementary
#2F1748 #484717 #174817
monochromatic
#0F0717 #11081A #2F1748 #4D2676 #6C35A5

Accessibility & contrast

On white

15.71
#2F1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1748
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1748#FFFFFF#000000##FFFFFF
##2F17481.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#2A212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1748;
/* rgb */ color: rgb(47, 23, 72);
/* oklch */ color: oklch(26.6% 0.089 303.5);
Tailwind
colors: {
  custom: {
    50: '#6a557b',
    500: '#2f1748',
    950: '#000000',
  },
}
SCSS
$custom: #2f1748;
$custom-light: #6a557b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1748",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 269.388,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26641,
    "c": 0.08876,
    "h": 303.5
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#2F1748
secondary
#5E7F3C
accent
#DB4D95
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1748

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

Preview Lab → · Contrast checker → · Palette generator →

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