#2A1458#2A1458

#2A1458 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.114 H 291.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2A1458
RGBrgb(42, 20, 88)
HSLhsl(259, 63%, 21%)
HSVhsv(259, 77%, 35%)
CMYKcmyk(52.3%, 77.3%, 0%, 65.5%)
CIE-LABlab(13.81, 28.93, -37.00)
CIE-LCHlch(13.81, 46.97, 308.02°)
OKLaboklab(26.98% 0.0422 -0.1061)
OKLCHoklch(26.98% 0.114 291.7)
XYZxyz(2.9660, 1.6970, 9.4019)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1458 #425814
analogous
#142058 #2A1458 #4C1458
triadic
#2A1458 #582A14 #14582A
tetradic
#2A1458 #581420 #425814 #14584C
square
#2A1458 #581420 #425814 #14584C
split-complementary
#2A1458 #584C14 #205814
monochromatic
#0C0619 #120926 #2A1458 #421F8A #5A2BBC

Accessibility & contrast

On white

15.68
#2A1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1458
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1458#FFFFFF#000000##FFFFFF
##2A14581.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1458;
/* rgb */ color: rgb(42, 20, 88);
/* oklch */ color: oklch(27.0% 0.114 291.7);
Tailwind
colors: {
  custom: {
    50: '#695488',
    500: '#2a1458',
    950: '#000000',
  },
}
SCSS
$custom: #2a1458;
$custom-light: #695488;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1458",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 259.412,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26979,
    "c": 0.11421,
    "h": 291.7
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#2A1458
secondary
#739038
accent
#E642B1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1458

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

Preview Lab → · Contrast checker → · Palette generator →

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