#2F1850#2F1850

#2F1850 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.098 H 298.6°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1850
RGBrgb(47, 24, 80)
HSLhsl(265, 54%, 20%)
HSVhsv(265, 70%, 31%)
CMYKcmyk(41.3%, 70%, 0%, 68.6%)
CIE-LABlab(14.61, 25.15, -30.25)
CIE-LCHlch(14.61, 39.34, 309.74°)
OKLaboklab(27.47% 0.047 -0.0861)
OKLCHoklch(27.47% 0.098 298.6)
XYZxyz(2.9465, 1.8368, 7.7872)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1850 #395018
analogous
#181D50 #2F1850 #4B1850
triadic
#2F1850 #502F18 #18502F
tetradic
#2F1850 #50181D #395018 #18504B
square
#2F1850 #50181D #395018 #18504B
split-complementary
#2F1850 #504B18 #1D5018
monochromatic
#0E0718 #130A21 #2F1850 #4B267F #6634AE

Accessibility & contrast

On white

15.36
#2F1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1850
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1850#FFFFFF#000000##FFFFFF
##2F18501.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#272531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1850;
/* rgb */ color: rgb(47, 24, 80);
/* oklch */ color: oklch(27.5% 0.098 298.6);
Tailwind
colors: {
  custom: {
    50: '#6b5681',
    500: '#2f1850',
    950: '#000000',
  },
}
SCSS
$custom: #2f1850;
$custom-light: #6b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1850",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 264.643,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27472,
    "c": 0.09809,
    "h": 298.6
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#2F1850
secondary
#68873D
accent
#DD4BA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1850

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

Preview Lab → · Contrast checker → · Palette generator →

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