#2F1F73#2F1F73

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

Color values

HEX#2F1F73
RGBrgb(47, 31, 115)
HSLhsl(251, 58%, 29%)
HSVhsv(251, 73%, 45%)
CMYKcmyk(59.1%, 73%, 0%, 54.9%)
CIE-LABlab(19.32, 32.02, -45.76)
CIE-LCHlch(19.32, 55.85, 304.98°)
OKLaboklab(31.84% 0.0336 -0.1317)
OKLCHoklch(31.84% 0.136 284.3)
XYZxyz(4.7558, 2.8218, 16.5104)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F73 #63731F
analogous
#1F3973 #2F1F73 #591F73
triadic
#2F1F73 #732F1F #1F732F
tetradic
#2F1F73 #731F39 #63731F #1F7359
square
#2F1F73 #731F39 #63731F #1F7359
split-complementary
#2F1F73 #73591F #39731F
monochromatic
#0A0618 #1B1243 #2F1F73 #432CA3 #5B41CC

Accessibility & contrast

On white

13.42
#2F1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F73
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F73#FFFFFF#000000##FFFFFF
##2F1F731.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#0D3546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1f73;
/* rgb */ color: rgb(47, 31, 115);
/* oklch */ color: oklch(31.8% 0.136 284.3);
Tailwind
colors: {
  custom: {
    50: '#705c9c',
    500: '#2f1f73',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f73;
$custom-light: #705c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f73",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 251.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.13591,
    "h": 284.3
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#2F1F73
secondary
#95A747
accent
#E147C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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