#2A103A#2A103A

#2A103A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.080 H 310.2°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#2A103A
RGBrgb(42, 16, 58)
HSLhsl(277, 57%, 15%)
HSVhsv(277, 72%, 23%)
CMYKcmyk(27.6%, 72.4%, 0%, 77.3%)
CIE-LABlab(10.32, 22.33, -21.80)
CIE-LCHlch(10.32, 31.21, 315.69°)
OKLaboklab(23.66% 0.0519 -0.0614)
OKLCHoklch(23.66% 0.08 310.2)
XYZxyz(1.9037, 1.1683, 4.1274)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A103A #203A10
analogous
#15103A #2A103A #3A1035
triadic
#2A103A #3A2A10 #103A2A
tetradic
#2A103A #3A1510 #203A10 #10353A
square
#2A103A #3A1510 #203A10 #10353A
split-complementary
#2A103A #353A10 #103A15
monochromatic
#110718 #110718 #2A103A #4D1D6A #6F2A9A

Accessibility & contrast

On white

17.02
#2A103A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A103A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A103A
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A103A#FFFFFF#000000##FFFFFF
##2A103A1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3B
Deuteranopia (green-blind)
#0B1D39
Tritanopia (blue-blind)
#281823
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a103a;
/* rgb */ color: rgb(42, 16, 58);
/* oklch */ color: oklch(23.7% 0.080 310.2);
Tailwind
colors: {
  custom: {
    50: '#655070',
    500: '#2a103a',
    950: '#000000',
  },
}
SCSS
$custom: #2a103a;
$custom-light: #655070;
$custom-dark: #000000;
JSON
{
  "hex": "#2a103a",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 58
  },
  "hsl": {
    "h": 277.143,
    "s": 56.757,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23655,
    "c": 0.08042,
    "h": 310.2
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#2A103A
secondary
#4B7432
accent
#E04882
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A103A

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

Preview Lab → · Contrast checker → · Palette generator →

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