#2A1057#2A1057

#2A1057 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.118 H 293.2°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#2A1057
RGBrgb(42, 16, 87)
HSLhsl(262, 69%, 20%)
HSVhsv(262, 82%, 34%)
CMYKcmyk(51.7%, 81.6%, 0%, 65.9%)
CIE-LABlab(12.93, 30.83, -37.77)
CIE-LCHlch(12.93, 48.76, 309.22°)
OKLaboklab(26.33% 0.0464 -0.1084)
OKLCHoklch(26.33% 0.118 293.2)
XYZxyz(2.8600, 1.5508, 9.1636)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1057 #3D5710
analogous
#101957 #2A1057 #4D1057
triadic
#2A1057 #572A10 #10572A
tetradic
#2A1057 #571019 #3D5710 #10574D
square
#2A1057 #571019 #3D5710 #10574D
split-complementary
#2A1057 #574D10 #195710
monochromatic
#0C051A #110623 #2A1057 #431A8B #5C23BE

Accessibility & contrast

On white

16.03
#2A1057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1057
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1057#FFFFFF#000000##FFFFFF
##2A10571.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#1C2333
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1057;
/* rgb */ color: rgb(42, 16, 87);
/* oklch */ color: oklch(26.3% 0.118 293.2);
Tailwind
colors: {
  custom: {
    50: '#695187',
    500: '#2a1057',
    950: '#000000',
  },
}
SCSS
$custom: #2a1057;
$custom-light: #695187;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1057",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 261.972,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26326,
    "c": 0.11788,
    "h": 293.2
  },
  "luminance": 0.01551
}

Semantic roles & 50–950 ramp

primary
#2A1057
secondary
#6E9032
accent
#EC3CAB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1057

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

Preview Lab → · Contrast checker → · Palette generator →

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