#2A1860#2A1860

#2A1860 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.120 H 287.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1860
RGBrgb(42, 24, 96)
HSLhsl(255, 60%, 24%)
HSVhsv(255, 75%, 38%)
CMYKcmyk(56.3%, 75%, 0%, 62.4%)
CIE-LABlab(15.43, 29.13, -39.71)
CIE-LCHlch(15.43, 49.24, 306.26°)
OKLaboklab(28.37% 0.0363 -0.1141)
OKLCHoklch(28.37% 0.12 287.7)
XYZxyz(3.3922, 1.9899, 11.2694)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1860 #4E6018
analogous
#182A60 #2A1860 #4E1860
triadic
#2A1860 #602A18 #18602A
tetradic
#2A1860 #60182A #4E6018 #18604E
square
#2A1860 #60182A #4E6018 #18604E
split-complementary
#2A1860 #604E18 #2A6018
monochromatic
#0B0618 #150C2F #2A1860 #3F2491 #5530C2

Accessibility & contrast

On white

15.02
#2A1860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1860
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1860#FFFFFF#000000##FFFFFF
##2A18601.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#152B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1860;
/* rgb */ color: rgb(42, 24, 96);
/* oklch */ color: oklch(28.4% 0.120 287.7);
Tailwind
colors: {
  custom: {
    50: '#6a568e',
    500: '#2a1860',
    950: '#000000',
  },
}
SCSS
$custom: #2a1860;
$custom-light: #6a568e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1860",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 255,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28374,
    "c": 0.11973,
    "h": 287.7
  },
  "luminance": 0.0199
}

Semantic roles & 50–950 ramp

primary
#2A1860
secondary
#80963D
accent
#E345BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1860

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

Preview Lab → · Contrast checker → · Palette generator →

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