#2F1979#2F1979

#2F1979 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.150 H 284.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1979
RGBrgb(47, 25, 121)
HSLhsl(254, 66%, 29%)
HSVhsv(254, 79%, 47%)
CMYKcmyk(61.2%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.71, 37.35, -50.60)
CIE-LCHlch(18.71, 62.89, 306.43°)
OKLaboklab(31.59% 0.0371 -0.1458)
OKLCHoklch(31.59% 0.15 284.3)
XYZxyz(4.9701, 2.6798, 18.3408)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1979 #637919
analogous
#193379 #2F1979 #5F1979
triadic
#2F1979 #792F19 #19792F
tetradic
#2F1979 #791933 #637919 #19795F
square
#2F1979 #791933 #637919 #19795F
split-complementary
#2F1979 #795F19 #337919
monochromatic
#0A0519 #1B0F46 #2F1979 #4323AC #5B37D6

Accessibility & contrast

On white

13.67
#2F1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1979
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1979#FFFFFF#000000##FFFFFF
##2F19791.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1979;
/* rgb */ color: rgb(47, 25, 121);
/* oklch */ color: oklch(31.6% 0.150 284.3);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#2f1979',
    950: '#000000',
  },
}
SCSS
$custom: #2f1979;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1979",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 253.75,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31592,
    "c": 0.15046,
    "h": 284.3
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#2F1979
secondary
#95AE40
accent
#E93FC2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1979

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

Preview Lab → · Contrast checker → · Palette generator →

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