#2F1B59#2F1B59

#2F1B59 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.106 H 293.5°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2F1B59
RGBrgb(47, 27, 89)
HSLhsl(259, 53%, 23%)
HSVhsv(259, 70%, 35%)
CMYKcmyk(47.2%, 69.7%, 0%, 65.1%)
CIE-LABlab(16.05, 26.06, -34.00)
CIE-LCHlch(16.05, 42.84, 307.47°)
OKLaboklab(28.75% 0.0422 -0.0971)
OKLCHoklch(28.75% 0.106 293.5)
XYZxyz(3.3669, 2.1094, 9.6790)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B59 #45591B
analogous
#1B2659 #2F1B59 #4E1B59
triadic
#2F1B59 #592F1B #1B592F
tetradic
#2F1B59 #591B26 #45591B #1B594E
square
#2F1B59 #591B26 #45591B #1B594E
split-complementary
#2F1B59 #594E1B #26591B
monochromatic
#0C0717 #160D2A #2F1B59 #482988 #6137B7

Accessibility & contrast

On white

14.77
#2F1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B59
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B59#FFFFFF#000000##FFFFFF
##2F1B591.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#232A37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1b59;
/* rgb */ color: rgb(47, 27, 89);
/* oklch */ color: oklch(28.8% 0.106 293.5);
Tailwind
colors: {
  custom: {
    50: '#6c5888',
    500: '#2f1b59',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b59;
$custom-light: #6c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b59",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 259.355,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28755,
    "c": 0.10589,
    "h": 293.5
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#2F1B59
secondary
#768F41
accent
#DD4BAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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