#2F1B73#2F1B73

#2F1B73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.141 H 285.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2F1B73
RGBrgb(47, 27, 115)
HSLhsl(254, 62%, 28%)
HSVhsv(254, 77%, 45%)
CMYKcmyk(59.1%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.48, 34.36, -47.14)
CIE-LCHlch(18.48, 58.33, 306.09°)
OKLaboklab(31.24% 0.0371 -0.1357)
OKLCHoklch(31.24% 0.141 285.3)
XYZxyz(4.6578, 2.6257, 16.4777)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B73 #5F731B
analogous
#1B3373 #2F1B73 #5B1B73
triadic
#2F1B73 #732F1B #1B732F
tetradic
#2F1B73 #731B33 #5F731B #1B735B
square
#2F1B73 #731B33 #5F731B #1B735B
split-complementary
#2F1B73 #735B1B #33731B
monochromatic
#0A0619 #1B0F41 #2F1B73 #4327A5 #5B38D0

Accessibility & contrast

On white

13.77
#2F1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B73
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B73#FFFFFF#000000##FFFFFF
##2F1B731.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#0D3345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1b73;
/* rgb */ color: rgb(47, 27, 115);
/* oklch */ color: oklch(31.2% 0.141 285.3);
Tailwind
colors: {
  custom: {
    50: '#705a9c',
    500: '#2f1b73',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b73;
$custom-light: #705a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b73",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 253.636,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31239,
    "c": 0.14068,
    "h": 285.3
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#2F1B73
secondary
#91A842
accent
#E543C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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