#2A1058#2A1058

#2A1058 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.119 H 292.8°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#2A1058
RGBrgb(42, 16, 88)
HSLhsl(262, 69%, 20%)
HSVhsv(262, 82%, 35%)
CMYKcmyk(52.3%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.03, 31.13, -38.28)
CIE-LCHlch(13.03, 49.34, 309.12°)
OKLaboklab(26.43% 0.0461 -0.1098)
OKLCHoklch(26.43% 0.119 292.8)
XYZxyz(2.9011, 1.5673, 9.3803)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1058 #3E5810
analogous
#101A58 #2A1058 #4E1058
triadic
#2A1058 #582A10 #10582A
tetradic
#2A1058 #58101A #3E5810 #10584E
square
#2A1058 #58101A #3E5810 #10584E
split-complementary
#2A1058 #584E10 #1A5810
monochromatic
#0C051A #110724 #2A1058 #43198C #5B23C0

Accessibility & contrast

On white

15.99
#2A1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1058
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1058#FFFFFF#000000##FFFFFF
##2A10581.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#1B2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1058;
/* rgb */ color: rgb(42, 16, 88);
/* oklch */ color: oklch(26.4% 0.119 292.8);
Tailwind
colors: {
  custom: {
    50: '#695188',
    500: '#2a1058',
    950: '#000000',
  },
}
SCSS
$custom: #2a1058;
$custom-light: #695188;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1058",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 261.667,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26429,
    "c": 0.11913,
    "h": 292.8
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#2A1058
secondary
#6F9132
accent
#EC3CAC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1058

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

Preview Lab → · Contrast checker → · Palette generator →

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