#2F1D64#2F1D64

#2F1D64 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.118 H 288.9°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1D64
RGBrgb(47, 29, 100)
HSLhsl(255, 55%, 25%)
HSVhsv(255, 71%, 39%)
CMYKcmyk(53%, 71%, 0%, 60.8%)
CIE-LABlab(17.47, 28.34, -39.00)
CIE-LCHlch(17.47, 48.21, 306.00°)
OKLaboklab(30.08% 0.0383 -0.1118)
OKLCHoklch(30.08% 0.118 288.9)
XYZxyz(3.9112, 2.4030, 12.3119)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D64 #52641D
analogous
#1D2F64 #2F1D64 #521D64
triadic
#2F1D64 #642F1D #1D642F
tetradic
#2F1D64 #641D2F #52641D #1D6452
square
#2F1D64 #641D2F #52641D #1D6452
split-complementary
#2F1D64 #64521D #2F641D
monochromatic
#0B0718 #190F35 #2F1D64 #452B93 #5C39C3

Accessibility & contrast

On white

14.18
#2F1D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1D64
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D64#FFFFFF#000000##FFFFFF
##2F1D641.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#1D2F3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1d64;
/* rgb */ color: rgb(47, 29, 100);
/* oklch */ color: oklch(30.1% 0.118 288.9);
Tailwind
colors: {
  custom: {
    50: '#6d5a91',
    500: '#2f1d64',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d64;
$custom-light: #6d5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d64",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 255.211,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30083,
    "c": 0.11822,
    "h": 288.9
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#2F1D64
secondary
#839944
accent
#DE49B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F1D64

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

Preview Lab → · Contrast checker → · Palette generator →

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