#2F1860#2F1860

#2F1860 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.120 H 291.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2F1860
RGBrgb(47, 24, 96)
HSLhsl(259, 60%, 24%)
HSVhsv(259, 75%, 38%)
CMYKcmyk(51%, 75%, 0%, 62.4%)
CIE-LABlab(16.01, 30.08, -38.73)
CIE-LCHlch(16.01, 49.04, 307.83°)
OKLaboklab(28.92% 0.0444 -0.111)
OKLCHoklch(28.92% 0.12 291.8)
XYZxyz(3.6097, 2.1020, 11.2796)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1860 #496018
analogous
#182560 #2F1860 #531860
triadic
#2F1860 #602F18 #18602F
tetradic
#2F1860 #601825 #496018 #186053
square
#2F1860 #601825 #496018 #186053
split-complementary
#2F1860 #605318 #256018
monochromatic
#0C0618 #170C2F #2F1860 #472491 #5F30C2

Accessibility & contrast

On white

14.78
#2F1860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1860
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1860#FFFFFF#000000##FFFFFF
##2F18601.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#202A3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1860;
/* rgb */ color: rgb(47, 24, 96);
/* oklch */ color: oklch(28.9% 0.120 291.8);
Tailwind
colors: {
  custom: {
    50: '#6d578e',
    500: '#2f1860',
    950: '#000000',
  },
}
SCSS
$custom: #2f1860;
$custom-light: #6d578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1860",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 259.167,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28923,
    "c": 0.1196,
    "h": 291.8
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#2F1860
secondary
#7A963D
accent
#E345B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1860

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

Preview Lab → · Contrast checker → · Palette generator →

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