#2F1879#2F1879

#2F1879 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.151 H 284.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1879
RGBrgb(47, 24, 121)
HSLhsl(254, 67%, 28%)
HSVhsv(254, 80%, 47%)
CMYKcmyk(61.2%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.53, 37.87, -50.90)
CIE-LCHlch(18.53, 63.45, 306.65°)
OKLaboklab(31.47% 0.0378 -0.1467)
OKLCHoklch(31.47% 0.151 284.4)
XYZxyz(4.9491, 2.6378, 18.3338)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1879 #627918
analogous
#183179 #2F1879 #5F1879
triadic
#2F1879 #792F18 #18792F
tetradic
#2F1879 #791831 #627918 #18795F
square
#2F1879 #791831 #627918 #18795F
split-complementary
#2F1879 #795F18 #317918
monochromatic
#0A051A #1B0E46 #2F1879 #4322AC #5B35D7

Accessibility & contrast

On white

13.75
#2F1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1879
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1879#FFFFFF#000000##FFFFFF
##2F18791.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1879;
/* rgb */ color: rgb(47, 24, 121);
/* oklch */ color: oklch(31.5% 0.151 284.4);
Tailwind
colors: {
  custom: {
    50: '#7258a1',
    500: '#2f1879',
    950: '#000000',
  },
}
SCSS
$custom: #2f1879;
$custom-light: #7258a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1879",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 254.227,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31465,
    "c": 0.15148,
    "h": 284.4
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#2F1879
secondary
#94AE3F
accent
#EA3EC1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1879

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

Preview Lab → · Contrast checker → · Palette generator →

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