#2F1B72#2F1B72

#2F1B72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.139 H 285.6°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2F1B72
RGBrgb(47, 27, 114)
HSLhsl(254, 62%, 28%)
HSVhsv(254, 76%, 45%)
CMYKcmyk(58.8%, 76.3%, 0%, 55.3%)
CIE-LABlab(18.38, 34.04, -46.65)
CIE-LCHlch(18.38, 57.75, 306.12°)
OKLaboklab(31.14% 0.0374 -0.1343)
OKLCHoklch(31.14% 0.139 285.6)
XYZxyz(4.6006, 2.6028, 16.1763)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B72 #5E721B
analogous
#1B3372 #2F1B72 #5A1B72
triadic
#2F1B72 #722F1B #1B722F
tetradic
#2F1B72 #721B33 #5E721B #1B725A
square
#2F1B72 #721B33 #5E721B #1B725A
split-complementary
#2F1B72 #725A1B #33721B
monochromatic
#0A0619 #1B0F41 #2F1B72 #4327A3 #5B38D0

Accessibility & contrast

On white

13.81
#2F1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B72
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B72#FFFFFF#000000##FFFFFF
##2F1B721.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#0F3345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1b72;
/* rgb */ color: rgb(47, 27, 114);
/* oklch */ color: oklch(31.1% 0.139 285.6);
Tailwind
colors: {
  custom: {
    50: '#705a9b',
    500: '#2f1b72',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b72;
$custom-light: #705a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b72",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 253.793,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31137,
    "c": 0.13939,
    "h": 285.6
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#2F1B72
secondary
#90A742
accent
#E543C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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