#2F1A71#2F1A71

#2F1A71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.139 H 286.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2F1A71
RGBrgb(47, 26, 113)
HSLhsl(254, 63%, 27%)
HSVhsv(254, 77%, 44%)
CMYKcmyk(58.4%, 77%, 0%, 55.7%)
CIE-LABlab(18.08, 34.29, -46.50)
CIE-LCHlch(18.08, 57.78, 306.40°)
OKLaboklab(30.89% 0.0385 -0.1338)
OKLCHoklch(30.89% 0.139 286)
XYZxyz(4.5214, 2.5351, 15.8707)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A71 #5C711A
analogous
#1A3071 #2F1A71 #5B1A71
triadic
#2F1A71 #712F1A #1A712F
tetradic
#2F1A71 #711A30 #5C711A #1A715B
square
#2F1A71 #711A30 #5C711A #1A715B
split-complementary
#2F1A71 #715B1A #30711A
monochromatic
#0A0619 #1A0F3F #2F1A71 #4425A3 #5A35D0

Accessibility & contrast

On white

13.93
#2F1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A71
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A71#FFFFFF#000000##FFFFFF
##2F1A711.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#103244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1a71;
/* rgb */ color: rgb(47, 26, 113);
/* oklch */ color: oklch(30.9% 0.139 286.0);
Tailwind
colors: {
  custom: {
    50: '#70599b',
    500: '#2f1a71',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a71;
$custom-light: #70599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a71",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 254.483,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30894,
    "c": 0.13925,
    "h": 286
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#2F1A71
secondary
#8EA641
accent
#E642BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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