#2F1A77#2F1A77

#2F1A77 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.147 H 284.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1A77
RGBrgb(47, 26, 119)
HSLhsl(254, 64%, 28%)
HSVhsv(254, 78%, 47%)
CMYKcmyk(60.5%, 78.2%, 0%, 53.3%)
CIE-LABlab(18.69, 36.18, -49.36)
CIE-LCHlch(18.69, 61.20, 306.24°)
OKLaboklab(31.51% 0.0369 -0.1422)
OKLCHoklch(31.51% 0.147 284.5)
XYZxyz(4.8704, 2.6747, 17.7088)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A77 #62771A
analogous
#1A3377 #2F1A77 #5D1A77
triadic
#2F1A77 #772F1A #1A772F
tetradic
#2F1A77 #771A33 #62771A #1A775D
square
#2F1A77 #771A33 #62771A #1A775D
split-complementary
#2F1A77 #775D1A #33771A
monochromatic
#0A0519 #1B0F45 #2F1A77 #4325A9 #5B38D3

Accessibility & contrast

On white

13.68
#2F1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A77
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A77#FFFFFF#000000##FFFFFF
##2F1A771.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#063447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1a77;
/* rgb */ color: rgb(47, 26, 119);
/* oklch */ color: oklch(31.5% 0.147 284.5);
Tailwind
colors: {
  custom: {
    50: '#71599f',
    500: '#2f1a77',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a77;
$custom-light: #71599f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a77",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 253.548,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31514,
    "c": 0.14689,
    "h": 284.5
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#2F1A77
secondary
#94AC41
accent
#E741C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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