#2F1A79#2F1A79

#2F1A79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.149 H 284.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2F1A79
RGBrgb(47, 26, 121)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 47%)
CMYKcmyk(61.2%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.90, 36.81, -50.30)
CIE-LCHlch(18.90, 62.33, 306.20°)
OKLaboklab(31.72% 0.0363 -0.1449)
OKLCHoklch(31.72% 0.149 284.1)
XYZxyz(4.9918, 2.7233, 18.3481)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A79 #64791A
analogous
#1A3579 #2F1A79 #5F1A79
triadic
#2F1A79 #792F1A #1A792F
tetradic
#2F1A79 #791A35 #64791A #1A795F
square
#2F1A79 #791A35 #64791A #1A795F
split-complementary
#2F1A79 #795F1A #35791A
monochromatic
#0A0519 #1B0F47 #2F1A79 #4325AB #5B39D4

Accessibility & contrast

On white

13.59
#2F1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A79
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A79#FFFFFF#000000##FFFFFF
##2F1A791.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#023548
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1a79;
/* rgb */ color: rgb(47, 26, 121);
/* oklch */ color: oklch(31.7% 0.149 284.1);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#2f1a79',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a79;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a79",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 253.263,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31723,
    "c": 0.14941,
    "h": 284.1
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#2F1A79
secondary
#96AD41
accent
#E840C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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