#2A1658#2A1658

#2A1658 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.112 H 291.1°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1658
RGBrgb(42, 22, 88)
HSLhsl(258, 60%, 22%)
HSVhsv(258, 75%, 35%)
CMYKcmyk(52.3%, 75%, 0%, 65.5%)
CIE-LABlab(14.23, 27.74, -36.31)
CIE-LCHlch(14.23, 45.70, 307.38°)
OKLaboklab(27.28% 0.0401 -0.1041)
OKLCHoklch(27.28% 0.112 291.1)
XYZxyz(3.0027, 1.7705, 9.4142)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1658 #445816
analogous
#162358 #2A1658 #4B1658
triadic
#2A1658 #582A16 #16582A
tetradic
#2A1658 #581623 #445816 #16584B
square
#2A1658 #581623 #445816 #16584B
split-complementary
#2A1658 #584B16 #235816
monochromatic
#0C0618 #130A27 #2A1658 #412289 #592EBA

Accessibility & contrast

On white

15.51
#2A1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A1658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1658
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1658#FFFFFF#000000##FFFFFF
##2A16581.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#1B2735
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1658;
/* rgb */ color: rgb(42, 22, 88);
/* oklch */ color: oklch(27.3% 0.112 291.1);
Tailwind
colors: {
  custom: {
    50: '#695588',
    500: '#2a1658',
    950: '#000000',
  },
}
SCSS
$custom: #2a1658;
$custom-light: #695588;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1658",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 258.182,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27281,
    "c": 0.11155,
    "h": 291.1
  },
  "luminance": 0.01771
}

Semantic roles & 50–950 ramp

primary
#2A1658
secondary
#768F3B
accent
#E345B3
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1658

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

Preview Lab → · Contrast checker → · Palette generator →

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