#2F1A85#2F1A85

#2F1A85 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.164 H 281.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1A85
RGBrgb(47, 26, 133)
HSLhsl(252, 67%, 31%)
HSVhsv(252, 80%, 52%)
CMYKcmyk(64.7%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.19, 40.57, -55.79)
CIE-LCHlch(20.19, 68.98, 306.02°)
OKLaboklab(33.01% 0.0328 -0.161)
OKLCHoklch(33.01% 0.164 281.5)
XYZxyz(5.7740, 3.0362, 22.4675)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A85 #70851A
analogous
#1A3A85 #2F1A85 #641A85
triadic
#2F1A85 #852F1A #1A852F
tetradic
#2F1A85 #851A3A #70851A #1A8564
square
#2F1A85 #851A3A #70851A #1A8564
split-complementary
#2F1A85 #85641A #3A851A
monochromatic
#0B061F #1D1052 #2F1A85 #4124B8 #5E40DA

Accessibility & contrast

On white

13.06
#2F1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A85
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A85#FFFFFF#000000##FFFFFF
##2F1A851.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1a85;
/* rgb */ color: rgb(47, 26, 133);
/* oklch */ color: oklch(33.0% 0.164 281.5);
Tailwind
colors: {
  custom: {
    50: '#745aaa',
    500: '#2f1a85',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a85;
$custom-light: #745aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a85",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 251.776,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3301,
    "c": 0.16428,
    "h": 281.5
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#2F1A85
secondary
#A1B842
accent
#EA3EC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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