#2F1B70#2F1B70

#2F1B70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.137 H 286.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1B70
RGBrgb(47, 27, 112)
HSLhsl(254, 61%, 27%)
HSVhsv(254, 76%, 44%)
CMYKcmyk(58%, 75.9%, 0%, 56.1%)
CIE-LABlab(18.18, 33.40, -45.69)
CIE-LCHlch(18.18, 56.60, 306.17°)
OKLaboklab(30.94% 0.0379 -0.1315)
OKLCHoklch(30.94% 0.137 286.1)
XYZxyz(4.4880, 2.5578, 15.5833)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B70 #5C701B
analogous
#1B3170 #2F1B70 #5A1B70
triadic
#2F1B70 #702F1B #1B702F
tetradic
#2F1B70 #701B31 #5C701B #1B705A
square
#2F1B70 #701B31 #5C701B #1B705A
split-complementary
#2F1B70 #705A1B #31701B
monochromatic
#0A0619 #1A0F3F #2F1B70 #4427A1 #5A37CF

Accessibility & contrast

On white

13.89
#2F1B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F1B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B70
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B70#FFFFFF#000000##FFFFFF
##2F1B701.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#123243
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1b70;
/* rgb */ color: rgb(47, 27, 112);
/* oklch */ color: oklch(30.9% 0.137 286.1);
Tailwind
colors: {
  custom: {
    50: '#70599a',
    500: '#2f1b70',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b70;
$custom-light: #70599a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b70",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 254.118,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30935,
    "c": 0.1368,
    "h": 286.1
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2F1B70
secondary
#8EA542
accent
#E444BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1B70

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

Preview Lab → · Contrast checker → · Palette generator →

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