#2A1859#2A1859

#2A1859 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.110 H 290.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1859
RGBrgb(42, 24, 89)
HSLhsl(257, 58%, 22%)
HSVhsv(257, 73%, 35%)
CMYKcmyk(52.8%, 73%, 0%, 65.1%)
CIE-LABlab(14.77, 26.84, -36.11)
CIE-LCHlch(14.77, 44.99, 306.63°)
OKLaboklab(27.69% 0.0377 -0.1035)
OKLCHoklch(27.69% 0.11 290)
XYZxyz(3.0841, 1.8667, 9.6471)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1859 #475918
analogous
#182759 #2A1859 #4B1859
triadic
#2A1859 #592A18 #18592A
tetradic
#2A1859 #591827 #475918 #18594B
square
#2A1859 #591827 #475918 #18594B
split-complementary
#2A1859 #594B18 #275918
monochromatic
#0B0618 #130B29 #2A1859 #412589 #5732B9

Accessibility & contrast

On white

15.29
#2A1859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1859
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1859#FFFFFF#000000##FFFFFF
##2A18591.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#1A2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1859;
/* rgb */ color: rgb(42, 24, 89);
/* oklch */ color: oklch(27.7% 0.110 290.0);
Tailwind
colors: {
  custom: {
    50: '#695688',
    500: '#2a1859',
    950: '#000000',
  },
}
SCSS
$custom: #2a1859;
$custom-light: #695688;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1859",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 89
  },
  "hsl": {
    "h": 256.615,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27694,
    "c": 0.11016,
    "h": 290
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#2A1859
secondary
#79903D
accent
#E147B6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1859

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

Preview Lab → · Contrast checker → · Palette generator →

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