#2F1C67#2F1C67

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

Color values

HEX#2F1C67
RGBrgb(47, 28, 103)
HSLhsl(255, 57%, 26%)
HSVhsv(255, 73%, 40%)
CMYKcmyk(54.4%, 72.8%, 0%, 59.6%)
CIE-LABlab(17.52, 29.92, -40.89)
CIE-LCHlch(17.52, 50.67, 306.19°)
OKLaboklab(30.2% 0.0388 -0.1174)
OKLCHoklch(30.2% 0.124 288.3)
XYZxyz(4.0350, 2.4139, 13.0827)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C67 #54671C
analogous
#1C2E67 #2F1C67 #541C67
triadic
#2F1C67 #672F1C #1C672F
tetradic
#2F1C67 #671C2E #54671C #1C6754
square
#2F1C67 #671C2E #54671C #1C6754
split-complementary
#2F1C67 #67541C #2E671C
monochromatic
#0B0718 #190F37 #2F1C67 #452997 #5B36C7

Accessibility & contrast

On white

14.16
#2F1C67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C67
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C67#FFFFFF#000000##FFFFFF
##2F1C671.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1c67;
/* rgb */ color: rgb(47, 28, 103);
/* oklch */ color: oklch(30.2% 0.124 288.3);
Tailwind
colors: {
  custom: {
    50: '#6e5a93',
    500: '#2f1c67',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c67;
$custom-light: #6e5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c67",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 103
  },
  "hsl": {
    "h": 255.2,
    "s": 57.252,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30204,
    "c": 0.12365,
    "h": 288.3
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#2F1C67
secondary
#859C43
accent
#E147BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2F1C67

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

Preview Lab → · Contrast checker → · Palette generator →

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