#2A1050#2A1050

#2A1050 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.109 H 296.3°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2A1050
RGBrgb(42, 16, 80)
HSLhsl(264, 67%, 19%)
HSVhsv(264, 80%, 31%)
CMYKcmyk(47.5%, 80%, 0%, 68.6%)
CIE-LABlab(12.23, 28.72, -34.13)
CIE-LCHlch(12.23, 44.61, 310.07°)
OKLaboklab(25.62% 0.0484 -0.0977)
OKLCHoklch(25.62% 0.109 296.3)
XYZxyz(2.5877, 1.4420, 7.7298)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1050 #365010
analogous
#101650 #2A1050 #4A1050
triadic
#2A1050 #502A10 #10502A
tetradic
#2A1050 #501016 #365010 #10504A
square
#2A1050 #501016 #365010 #10504A
split-complementary
#2A1050 #504A10 #165010
monochromatic
#0D051A #0F061D #2A1050 #451A83 #6024B6

Accessibility & contrast

On white

16.30
#2A1050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1050
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1050#FFFFFF#000000##FFFFFF
##2A10501.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#20212F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1050;
/* rgb */ color: rgb(42, 16, 80);
/* oklch */ color: oklch(25.6% 0.109 296.3);
Tailwind
colors: {
  custom: {
    50: '#685182',
    500: '#2a1050',
    950: '#000000',
  },
}
SCSS
$custom: #2a1050;
$custom-light: #685182;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1050",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 264.375,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25624,
    "c": 0.109,
    "h": 296.3
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#2A1050
secondary
#668A32
accent
#EA3EA4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1050

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

Preview Lab → · Contrast checker → · Palette generator →

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