#2A1055#2A1055

#2A1055 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.115 H 294.0°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1055
RGBrgb(42, 16, 85)
HSLhsl(263, 68%, 20%)
HSVhsv(263, 81%, 33%)
CMYKcmyk(50.6%, 81.2%, 0%, 66.7%)
CIE-LABlab(12.73, 30.22, -36.74)
CIE-LCHlch(12.73, 47.58, 309.44°)
OKLaboklab(26.12% 0.047 -0.1053)
OKLCHoklch(26.12% 0.115 294)
XYZxyz(2.7794, 1.5186, 8.7392)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1055 #3B5510
analogous
#101855 #2A1055 #4D1055
triadic
#2A1055 #552A10 #10552A
tetradic
#2A1055 #551018 #3B5510 #10554D
square
#2A1055 #551018 #3B5510 #10554D
split-complementary
#2A1055 #554D10 #185510
monochromatic
#0D051A #110621 #2A1055 #431A89 #5D23BC

Accessibility & contrast

On white

16.11
#2A1055 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1055 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1055
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1055#FFFFFF#000000##FFFFFF
##2A10551.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#1D2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1055;
/* rgb */ color: rgb(42, 16, 85);
/* oklch */ color: oklch(26.1% 0.115 294.0);
Tailwind
colors: {
  custom: {
    50: '#695186',
    500: '#2a1055',
    950: '#000000',
  },
}
SCSS
$custom: #2a1055;
$custom-light: #695186;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1055",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 85
  },
  "hsl": {
    "h": 262.609,
    "s": 68.317,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26122,
    "c": 0.11535,
    "h": 294
  },
  "luminance": 0.01519
}

Semantic roles & 50–950 ramp

primary
#2A1055
secondary
#6C8F32
accent
#EB3DA9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1055

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

Preview Lab → · Contrast checker → · Palette generator →

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