#2F1A87#2F1A87

#2F1A87 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 281.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2F1A87
RGBrgb(47, 26, 135)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(65.2%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.41, 41.19, -56.69)
CIE-LCHlch(20.41, 70.07, 306.00°)
OKLaboklab(33.23% 0.0322 -0.1636)
OKLCHoklch(33.23% 0.167 281.1)
XYZxyz(5.9135, 3.0919, 23.2022)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A87 #72871A
analogous
#1A3B87 #2F1A87 #661A87
triadic
#2F1A87 #872F1A #1A872F
tetradic
#2F1A87 #871A3B #72871A #1A8766
square
#2F1A87 #871A3B #72871A #1A8766
split-complementary
#2F1A87 #87661A #3B871A
monochromatic
#0B0620 #1D1054 #2F1A87 #4124BA #5F41DA

Accessibility & contrast

On white

12.98
#2F1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A87
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A87#FFFFFF#000000##FFFFFF
##2F1A871.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1a87;
/* rgb */ color: rgb(47, 26, 135);
/* oklch */ color: oklch(33.2% 0.167 281.1);
Tailwind
colors: {
  custom: {
    50: '#745aab',
    500: '#2f1a87',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a87;
$custom-light: #745aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a87",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 251.56,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33229,
    "c": 0.16672,
    "h": 281.1
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#2F1A87
secondary
#A3BA42
accent
#EB3DC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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