#2F1B68#2F1B68

#2F1B68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.126 H 288.3°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1B68
RGBrgb(47, 27, 104)
HSLhsl(256, 59%, 26%)
HSVhsv(256, 74%, 41%)
CMYKcmyk(54.8%, 74%, 0%, 59.2%)
CIE-LABlab(17.40, 30.84, -41.75)
CIE-LCHlch(17.40, 51.90, 306.46°)
OKLaboklab(30.15% 0.0397 -0.1199)
OKLCHoklch(30.15% 0.126 288.3)
XYZxyz(4.0622, 2.3875, 13.3408)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B68 #54681B
analogous
#1B2D68 #2F1B68 #551B68
triadic
#2F1B68 #682F1B #1B682F
tetradic
#2F1B68 #681B2D #54681B #1B6855
square
#2F1B68 #681B2D #54681B #1B6855
split-complementary
#2F1B68 #68551B #2D681B
monochromatic
#0B0618 #190E37 #2F1B68 #452899 #5B34C9

Accessibility & contrast

On white

14.21
#2F1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B68
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B68#FFFFFF#000000##FFFFFF
##2F1B681.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002967
Tritanopia (blue-blind)
#1A2F3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1b68;
/* rgb */ color: rgb(47, 27, 104);
/* oklch */ color: oklch(30.1% 0.126 288.3);
Tailwind
colors: {
  custom: {
    50: '#6e5994',
    500: '#2f1b68',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b68;
$custom-light: #6e5994;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b68",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 255.584,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30145,
    "c": 0.12629,
    "h": 288.3
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#2F1B68
secondary
#859D42
accent
#E246B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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