#2F1B85#2F1B85

#2F1B85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.163 H 281.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2F1B85
RGBrgb(47, 27, 133)
HSLhsl(251, 66%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(64.7%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.37, 40.06, -55.50)
CIE-LCHlch(20.37, 68.44, 305.82°)
OKLaboklab(33.14% 0.0322 -0.1601)
OKLCHoklch(33.14% 0.163 281.4)
XYZxyz(5.7965, 3.0812, 22.4750)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B85 #71851B
analogous
#1B3C85 #2F1B85 #641B85
triadic
#2F1B85 #852F1B #1B852F
tetradic
#2F1B85 #851B3C #71851B #1B8564
square
#2F1B85 #851B3C #71851B #1B8564
split-complementary
#2F1B85 #85641B #3C851B
monochromatic
#0B061F #1D1152 #2F1B85 #4125B8 #5E42D9

Accessibility & contrast

On white

12.99
#2F1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B85
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B85#FFFFFF#000000##FFFFFF
##2F1B851.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1b85;
/* rgb */ color: rgb(47, 27, 133);
/* oklch */ color: oklch(33.1% 0.163 281.4);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#2f1b85',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b85;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b85",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 251.321,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.16334,
    "h": 281.4
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#2F1B85
secondary
#A2B844
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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