#2D1860#2D1860

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

Color values

HEX#2D1860
RGBrgb(45, 24, 96)
HSLhsl(258, 60%, 24%)
HSVhsv(258, 75%, 38%)
CMYKcmyk(53.1%, 75%, 0%, 62.4%)
CIE-LABlab(15.78, 29.69, -39.13)
CIE-LCHlch(15.78, 49.12, 307.19°)
OKLaboklab(28.7% 0.0412 -0.1123)
OKLCHoklch(28.7% 0.12 290.1)
XYZxyz(3.5195, 2.0555, 11.2754)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1860 #4B6018
analogous
#182760 #2D1860 #511860
triadic
#2D1860 #602D18 #18602D
tetradic
#2D1860 #601827 #4B6018 #186051
square
#2D1860 #601827 #4B6018 #186051
split-complementary
#2D1860 #605118 #276018
monochromatic
#0B0618 #160C2F #2D1860 #442491 #5B30C2

Accessibility & contrast

On white

14.88
#2D1860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1860
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1860#FFFFFF#000000##FFFFFF
##2D18601.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#1C2B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1860;
/* rgb */ color: rgb(45, 24, 96);
/* oklch */ color: oklch(28.7% 0.120 290.1);
Tailwind
colors: {
  custom: {
    50: '#6c578e',
    500: '#2d1860',
    950: '#000000',
  },
}
SCSS
$custom: #2d1860;
$custom-light: #6c578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1860",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 257.5,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28698,
    "c": 0.1196,
    "h": 290.1
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#2D1860
secondary
#7C963D
accent
#E345B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1860

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

Preview Lab → · Contrast checker → · Palette generator →

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