#2F1F77#2F1F77

#2F1F77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.141 H 283.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2F1F77
RGBrgb(47, 31, 119)
HSLhsl(251, 59%, 29%)
HSVhsv(251, 74%, 47%)
CMYKcmyk(60.5%, 73.9%, 0%, 53.3%)
CIE-LABlab(19.70, 33.34, -47.69)
CIE-LCHlch(19.70, 58.19, 304.95°)
OKLaboklab(32.23% 0.0328 -0.1373)
OKLCHoklch(32.23% 0.141 283.4)
XYZxyz(4.9910, 2.9159, 17.7490)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F77 #67771F
analogous
#1F3B77 #2F1F77 #5B1F77
triadic
#2F1F77 #772F1F #1F772F
tetradic
#2F1F77 #771F3B #67771F #1F775B
square
#2F1F77 #771F3B #67771F #1F775B
split-complementary
#2F1F77 #775B1F #3B771F
monochromatic
#0A0618 #1C1246 #2F1F77 #422CA8 #5C43CE

Accessibility & contrast

On white

13.26
#2F1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F77
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F77#FFFFFF#000000##FFFFFF
##2F1F771.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#053748
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1f77;
/* rgb */ color: rgb(47, 31, 119);
/* oklch */ color: oklch(32.2% 0.141 283.4);
Tailwind
colors: {
  custom: {
    50: '#715c9f',
    500: '#2f1f77',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f77;
$custom-light: #715c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f77",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 250.909,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3223,
    "c": 0.14121,
    "h": 283.4
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#2F1F77
secondary
#98AB47
accent
#E246C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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