#2F1B67#2F1B67

#2F1B67 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.0% C 0.125 H 288.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1B67
RGBrgb(47, 27, 103)
HSLhsl(256, 58%, 25%)
HSVhsv(256, 74%, 40%)
CMYKcmyk(54.4%, 73.8%, 0%, 59.6%)
CIE-LABlab(17.31, 30.52, -41.24)
CIE-LCHlch(17.31, 51.31, 306.50°)
OKLaboklab(30.05% 0.0399 -0.1184)
OKLCHoklch(30.05% 0.125 288.6)
XYZxyz(4.0117, 2.3673, 13.0749)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B67 #53671B
analogous
#1B2D67 #2F1B67 #551B67
triadic
#2F1B67 #672F1B #1B672F
tetradic
#2F1B67 #671B2D #53671B #1B6755
square
#2F1B67 #671B2D #53671B #1B6755
split-complementary
#2F1B67 #67551B #2D671B
monochromatic
#0B0618 #190E37 #2F1B67 #452897 #5B34C8

Accessibility & contrast

On white

14.25
#2F1B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B67
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B67#FFFFFF#000000##FFFFFF
##2F1B671.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#1A2F3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1b67;
/* rgb */ color: rgb(47, 27, 103);
/* oklch */ color: oklch(30.0% 0.125 288.6);
Tailwind
colors: {
  custom: {
    50: '#6e5993',
    500: '#2f1b67',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b67;
$custom-light: #6e5993;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b67",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 255.789,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30049,
    "c": 0.12496,
    "h": 288.6
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#2F1B67
secondary
#849C42
accent
#E246B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1B67

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

Preview Lab → · Contrast checker → · Palette generator →

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