#2F1744#2F1744

#2F1744 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.083 H 306.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2F1744
RGBrgb(47, 23, 68)
HSLhsl(272, 49%, 18%)
HSVhsv(272, 66%, 27%)
CMYKcmyk(30.9%, 66.2%, 0%, 73.3%)
CIE-LABlab(13.44, 22.24, -23.84)
CIE-LCHlch(13.44, 32.60, 313.01°)
OKLaboklab(26.33% 0.049 -0.0673)
OKLCHoklch(26.33% 0.083 306.1)
XYZxyz(2.5219, 1.6345, 5.6504)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1744 #2C4417
analogous
#181744 #2F1744 #441742
triadic
#2F1744 #442F17 #17442F
tetradic
#2F1744 #441817 #2C4417 #174244
square
#2F1744 #441817 #2C4417 #174244
split-complementary
#2F1744 #424417 #174418
monochromatic
#100817 #100817 #2F1744 #4F2672 #6E369F

Accessibility & contrast

On white

15.83
#2F1744 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1744 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1744
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1744#FFFFFF#000000##FFFFFF
##2F17441.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052245
Deuteranopia (green-blind)
#0F2343
Tritanopia (blue-blind)
#2C202A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1744;
/* rgb */ color: rgb(47, 23, 68);
/* oklch */ color: oklch(26.3% 0.083 306.1);
Tailwind
colors: {
  custom: {
    50: '#695578',
    500: '#2f1744',
    950: '#000000',
  },
}
SCSS
$custom: #2f1744;
$custom-light: #695578;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1744",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 68
  },
  "hsl": {
    "h": 272,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26326,
    "c": 0.08325,
    "h": 306.1
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#2F1744
secondary
#597B3C
accent
#D94F8F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1744

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

Preview Lab → · Contrast checker → · Palette generator →

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