#2F1B7B#2F1B7B

#2F1B7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.151 H 283.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1B7B
RGBrgb(47, 27, 123)
HSLhsl(253, 64%, 29%)
HSVhsv(253, 78%, 48%)
CMYKcmyk(61.8%, 78%, 0%, 51.8%)
CIE-LABlab(19.30, 36.91, -50.92)
CIE-LCHlch(19.30, 62.89, 305.94°)
OKLaboklab(32.07% 0.035 -0.1467)
OKLCHoklch(32.07% 0.151 283.4)
XYZxyz(5.1383, 2.8179, 19.0082)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B7B #677B1B
analogous
#1B377B #2F1B7B #5F1B7B
triadic
#2F1B7B #7B2F1B #1B7B2F
tetradic
#2F1B7B #7B1B37 #677B1B #1B7B5F
square
#2F1B7B #7B1B37 #677B1B #1B7B5F
split-complementary
#2F1B7B #7B5F1B #377B1B
monochromatic
#0A0619 #1C1049 #2F1B7B #4226AD #5C3CD4

Accessibility & contrast

On white

13.43
#2F1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B7B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B7B#FFFFFF#000000##FFFFFF
##2F1B7B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1b7b;
/* rgb */ color: rgb(47, 27, 123);
/* oklch */ color: oklch(32.1% 0.151 283.4);
Tailwind
colors: {
  custom: {
    50: '#725aa2',
    500: '#2f1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b7b;
$custom-light: #725aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b7b",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 252.5,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32067,
    "c": 0.15087,
    "h": 283.4
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#2F1B7B
secondary
#98AF43
accent
#E741C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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