#2F1A5D#2F1A5D

#2F1A5D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.113 H 292.3°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2F1A5D
RGBrgb(47, 26, 93)
HSLhsl(259, 56%, 23%)
HSVhsv(259, 72%, 36%)
CMYKcmyk(49.5%, 72%, 0%, 63.5%)
CIE-LABlab(16.17, 27.94, -36.48)
CIE-LCHlch(16.17, 45.95, 307.45°)
OKLaboklab(28.95% 0.0428 -0.1044)
OKLCHoklch(28.95% 0.113 292.3)
XYZxyz(3.5169, 2.1333, 10.5803)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A5D #485D1A
analogous
#1A265D #2F1A5D #501A5D
triadic
#2F1A5D #5D2F1A #1A5D2F
tetradic
#2F1A5D #5D1A26 #485D1A #1A5D50
square
#2F1A5D #5D1A26 #485D1A #1A5D50
split-complementary
#2F1A5D #5D501A #265D1A
monochromatic
#0C0718 #170D2D #2F1A5D #47278D #5F35BD

Accessibility & contrast

On white

14.72
#2F1A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A5D
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A5D#FFFFFF#000000##FFFFFF
##2F1A5D1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#212A39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1a5d;
/* rgb */ color: rgb(47, 26, 93);
/* oklch */ color: oklch(29.0% 0.113 292.3);
Tailwind
colors: {
  custom: {
    50: '#6c588b',
    500: '#2f1a5d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a5d;
$custom-light: #6c588b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a5d",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 258.806,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28951,
    "c": 0.11285,
    "h": 292.3
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#2F1A5D
secondary
#799340
accent
#E048B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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