#2F1859#2F1859

#2F1859 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.110 H 294.5°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#2F1859
RGBrgb(47, 24, 89)
HSLhsl(261, 58%, 22%)
HSVhsv(261, 73%, 35%)
CMYKcmyk(47.2%, 73%, 0%, 65.1%)
CIE-LABlab(15.38, 27.90, -35.10)
CIE-LCHlch(15.38, 44.84, 308.49°)
OKLaboklab(28.27% 0.0458 -0.1004)
OKLCHoklch(28.27% 0.11 294.5)
XYZxyz(3.3016, 1.9788, 9.6572)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1859 #425918
analogous
#182259 #2F1859 #501859
triadic
#2F1859 #592F18 #18592F
tetradic
#2F1859 #591822 #425918 #185950
square
#2F1859 #591822 #425918 #185950
split-complementary
#2F1859 #595018 #225918
monochromatic
#0D0618 #160B29 #2F1859 #482589 #6232B9

Accessibility & contrast

On white

15.05
#2F1859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1859 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1859
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1859#FFFFFF#000000##FFFFFF
##2F18591.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#232836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1859;
/* rgb */ color: rgb(47, 24, 89);
/* oklch */ color: oklch(28.3% 0.110 294.5);
Tailwind
colors: {
  custom: {
    50: '#6c5788',
    500: '#2f1859',
    950: '#000000',
  },
}
SCSS
$custom: #2f1859;
$custom-light: #6c5788;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1859",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 89
  },
  "hsl": {
    "h": 261.231,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28269,
    "c": 0.1103,
    "h": 294.5
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#2F1859
secondary
#72903D
accent
#E147AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1859

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

Preview Lab → · Contrast checker → · Palette generator →

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