#2F1C77#2F1C77

#2F1C77 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.145 H 284.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#2F1C77
RGBrgb(47, 28, 119)
HSLhsl(253, 62%, 29%)
HSVhsv(253, 76%, 47%)
CMYKcmyk(60.5%, 76.5%, 0%, 53.3%)
CIE-LABlab(19.08, 35.08, -48.71)
CIE-LCHlch(19.08, 60.03, 305.76°)
OKLaboklab(31.79% 0.0353 -0.1403)
OKLCHoklch(31.79% 0.145 284.1)
XYZxyz(4.9163, 2.7664, 17.7241)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C77 #64771C
analogous
#1C3777 #2F1C77 #5D1C77
triadic
#2F1C77 #772F1C #1C772F
tetradic
#2F1C77 #771C37 #64771C #1C775D
square
#2F1C77 #771C37 #64771C #1C775D
split-complementary
#2F1C77 #775D1C #37771C
monochromatic
#0A0619 #1B1045 #2F1C77 #4328A9 #5B3CD1

Accessibility & contrast

On white

13.52
#2F1C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C77
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C77#FFFFFF#000000##FFFFFF
##2F1C771.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1c77;
/* rgb */ color: rgb(47, 28, 119);
/* oklch */ color: oklch(31.8% 0.145 284.1);
Tailwind
colors: {
  custom: {
    50: '#715a9f',
    500: '#2f1c77',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c77;
$custom-light: #715a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c77",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 252.527,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3179,
    "c": 0.14469,
    "h": 284.1
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#2F1C77
secondary
#96AB44
accent
#E543C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1C77

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

Preview Lab → · Contrast checker → · Palette generator →

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