#2F1B77#2F1B77

#2F1B77 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.146 H 284.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2F1B77
RGBrgb(47, 27, 119)
HSLhsl(253, 63%, 29%)
HSVhsv(253, 77%, 47%)
CMYKcmyk(60.5%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.88, 35.64, -49.04)
CIE-LCHlch(18.88, 60.62, 306.00°)
OKLaboklab(31.65% 0.0361 -0.1413)
OKLCHoklch(31.65% 0.146 284.3)
XYZxyz(4.8930, 2.7198, 17.7163)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B77 #63771B
analogous
#1B3577 #2F1B77 #5D1B77
triadic
#2F1B77 #772F1B #1B772F
tetradic
#2F1B77 #771B35 #63771B #1B775D
square
#2F1B77 #771B35 #63771B #1B775D
split-complementary
#2F1B77 #775D1B #35771B
monochromatic
#0A0619 #1B1045 #2F1B77 #4326A9 #5B3AD2

Accessibility & contrast

On white

13.60
#2F1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B77
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B77#FFFFFF#000000##FFFFFF
##2F1B771.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#063547
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1b77;
/* rgb */ color: rgb(47, 27, 119);
/* oklch */ color: oklch(31.6% 0.146 284.3);
Tailwind
colors: {
  custom: {
    50: '#715a9f',
    500: '#2f1b77',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b77;
$custom-light: #715a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b77",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 253.043,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3165,
    "c": 0.14581,
    "h": 284.3
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#2F1B77
secondary
#95AB42
accent
#E642C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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