#2F1759#2F1759

#2F1759 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.112 H 294.8°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2F1759
RGBrgb(47, 23, 89)
HSLhsl(262, 59%, 22%)
HSVhsv(262, 74%, 35%)
CMYKcmyk(47.2%, 74.2%, 0%, 65.1%)
CIE-LABlab(15.16, 28.50, -35.45)
CIE-LCHlch(15.16, 45.48, 308.80°)
OKLaboklab(28.11% 0.0469 -0.1014)
OKLCHoklch(28.11% 0.112 294.8)
XYZxyz(3.2814, 1.9383, 9.6505)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1759 #415917
analogous
#172059 #2F1759 #501759
triadic
#2F1759 #592F17 #17592F
tetradic
#2F1759 #591720 #415917 #175950
square
#2F1759 #591720 #415917 #175950
split-complementary
#2F1759 #595017 #205917
monochromatic
#0D0618 #150A28 #2F1759 #49248A #6230BA

Accessibility & contrast

On white

15.13
#2F1759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1759
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1759#FFFFFF#000000##FFFFFF
##2F17591.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#232736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1759;
/* rgb */ color: rgb(47, 23, 89);
/* oklch */ color: oklch(28.1% 0.112 294.8);
Tailwind
colors: {
  custom: {
    50: '#6c5688',
    500: '#2f1759',
    950: '#000000',
  },
}
SCSS
$custom: #2f1759;
$custom-light: #6c5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1759",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 261.818,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28114,
    "c": 0.11171,
    "h": 294.8
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#2F1759
secondary
#71903C
accent
#E246A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1759

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

Preview Lab → · Contrast checker → · Palette generator →

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