#2F1977#2F1977

#2F1977 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.148 H 284.7°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1977
RGBrgb(47, 25, 119)
HSLhsl(254, 65%, 28%)
HSVhsv(254, 79%, 47%)
CMYKcmyk(60.5%, 79%, 0%, 53.3%)
CIE-LABlab(18.50, 36.72, -49.67)
CIE-LCHlch(18.50, 61.77, 306.48°)
OKLaboklab(31.38% 0.0376 -0.1431)
OKLCHoklch(31.38% 0.148 284.7)
XYZxyz(4.8487, 2.6312, 17.7016)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1977 #617719
analogous
#193277 #2F1977 #5E1977
triadic
#2F1977 #772F19 #19772F
tetradic
#2F1977 #771932 #617719 #19775E
square
#2F1977 #771932 #617719 #19775E
split-complementary
#2F1977 #775E19 #327719
monochromatic
#0A0519 #1B0E44 #2F1977 #4324AA #5B36D5

Accessibility & contrast

On white

13.76
#2F1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1977
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1977#FFFFFF#000000##FFFFFF
##2F19771.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1977;
/* rgb */ color: rgb(47, 25, 119);
/* oklch */ color: oklch(31.4% 0.148 284.7);
Tailwind
colors: {
  custom: {
    50: '#71599f',
    500: '#2f1977',
    950: '#000000',
  },
}
SCSS
$custom: #2f1977;
$custom-light: #71599f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1977",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 254.043,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31381,
    "c": 0.14796,
    "h": 284.7
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#2F1977
secondary
#93AC40
accent
#E840C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2F1977

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

Preview Lab → · Contrast checker → · Palette generator →

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