#2A1358#2A1358

#2A1358 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.115 H 292.0°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2A1358
RGBrgb(42, 19, 88)
HSLhsl(260, 64%, 21%)
HSVhsv(260, 78%, 35%)
CMYKcmyk(52.3%, 78.4%, 0%, 65.5%)
CIE-LABlab(13.61, 29.50, -37.34)
CIE-LCHlch(13.61, 47.58, 308.31°)
OKLaboklab(26.83% 0.0432 -0.1071)
OKLCHoklch(26.83% 0.115 292)
XYZxyz(2.9487, 1.6625, 9.3961)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1358 #415813
analogous
#131E58 #2A1358 #4C1358
triadic
#2A1358 #582A13 #13582A
tetradic
#2A1358 #58131E #415813 #13584C
square
#2A1358 #58131E #415813 #13584C
split-complementary
#2A1358 #584C13 #1E5813
monochromatic
#0C0519 #120826 #2A1358 #421E8A #5A29BD

Accessibility & contrast

On white

15.76
#2A1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1358
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1358#FFFFFF#000000##FFFFFF
##2A13581.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#1B2534
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1358;
/* rgb */ color: rgb(42, 19, 88);
/* oklch */ color: oklch(26.8% 0.115 292.0);
Tailwind
colors: {
  custom: {
    50: '#695388',
    500: '#2a1358',
    950: '#000000',
  },
}
SCSS
$custom: #2a1358;
$custom-light: #695388;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1358",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 260,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26834,
    "c": 0.11549,
    "h": 292
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#2A1358
secondary
#729037
accent
#E740B0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1358

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

Preview Lab → · Contrast checker → · Palette generator →

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