#2F1779#2F1779

#2F1779 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.152 H 284.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#2F1779
RGBrgb(47, 23, 121)
HSLhsl(255, 68%, 28%)
HSVhsv(255, 81%, 47%)
CMYKcmyk(61.2%, 81%, 0%, 52.5%)
CIE-LABlab(18.35, 38.38, -51.20)
CIE-LCHlch(18.35, 63.99, 306.86°)
OKLaboklab(31.34% 0.0385 -0.1475)
OKLCHoklch(31.34% 0.152 284.6)
XYZxyz(4.9288, 2.5973, 18.3271)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1779 #617917
analogous
#173079 #2F1779 #601779
triadic
#2F1779 #792F17 #17792F
tetradic
#2F1779 #791730 #617917 #177960
square
#2F1779 #791730 #617917 #177960
split-complementary
#2F1779 #796017 #307917
monochromatic
#0A051A #1B0D46 #2F1779 #4321AC #5B32D8

Accessibility & contrast

On white

13.82
#2F1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1779
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1779#FFFFFF#000000##FFFFFF
##2F17791.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#033448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1779;
/* rgb */ color: rgb(47, 23, 121);
/* oklch */ color: oklch(31.3% 0.152 284.6);
Tailwind
colors: {
  custom: {
    50: '#7258a1',
    500: '#2f1779',
    950: '#000000',
  },
}
SCSS
$custom: #2f1779;
$custom-light: #7258a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1779",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 254.694,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.15246,
    "h": 284.6
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#2F1779
secondary
#93AE3E
accent
#EB3DC0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1779

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

Preview Lab → · Contrast checker → · Palette generator →

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