#2F1A72#2F1A72

#2F1A72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.141 H 285.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1A72
RGBrgb(47, 26, 114)
HSLhsl(254, 63%, 27%)
HSVhsv(254, 77%, 45%)
CMYKcmyk(58.8%, 77.2%, 0%, 55.3%)
CIE-LABlab(18.18, 34.60, -46.98)
CIE-LCHlch(18.18, 58.35, 306.37°)
OKLaboklab(31% 0.0382 -0.1352)
OKLCHoklch(31% 0.141 285.8)
XYZxyz(4.5780, 2.5578, 16.1688)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A72 #5D721A
analogous
#1A3172 #2F1A72 #5B1A72
triadic
#2F1A72 #722F1A #1A722F
tetradic
#2F1A72 #721A31 #5D721A #1A725B
square
#2F1A72 #721A31 #5D721A #1A725B
split-complementary
#2F1A72 #725B1A #31721A
monochromatic
#0A0619 #1A0F40 #2F1A72 #4425A4 #5B35D1

Accessibility & contrast

On white

13.89
#2F1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A72
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A72#FFFFFF#000000##FFFFFF
##2F1A721.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#0F3244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1a72;
/* rgb */ color: rgb(47, 26, 114);
/* oklch */ color: oklch(31.0% 0.141 285.8);
Tailwind
colors: {
  custom: {
    50: '#70599b',
    500: '#2f1a72',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a72;
$custom-light: #70599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a72",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 254.318,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30996,
    "c": 0.14054,
    "h": 285.8
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2F1A72
secondary
#8FA741
accent
#E642BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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