#2A103B#2A103B

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

Color values

HEX#2A103B
RGBrgb(42, 16, 59)
HSLhsl(276, 57%, 15%)
HSVhsv(276, 73%, 23%)
CMYKcmyk(28.8%, 72.9%, 0%, 76.9%)
CIE-LABlab(10.40, 22.61, -22.40)
CIE-LCHlch(10.40, 31.82, 315.27°)
OKLaboklab(23.74% 0.0518 -0.0632)
OKLCHoklch(23.74% 0.082 309.4)
XYZxyz(1.9294, 1.1786, 4.2627)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A103B #213B10
analogous
#15103B #2A103B #3B1037
triadic
#2A103B #3B2A10 #103B2A
tetradic
#2A103B #3B1510 #213B10 #10373B
square
#2A103B #3B1510 #213B10 #10373B
split-complementary
#2A103B #373B10 #103B15
monochromatic
#110718 #110718 #2A103B #4C1D6B #6F2A9B

Accessibility & contrast

On white

16.99
#2A103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A103B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A103B
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A103B#FFFFFF#000000##FFFFFF
##2A103B1.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#0A1D3A
Tritanopia (blue-blind)
#281923
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a103b;
/* rgb */ color: rgb(42, 16, 59);
/* oklch */ color: oklch(23.7% 0.082 309.4);
Tailwind
colors: {
  custom: {
    50: '#655071',
    500: '#2a103b',
    950: '#000000',
  },
}
SCSS
$custom: #2a103b;
$custom-light: #655071;
$custom-dark: #000000;
JSON
{
  "hex": "#2a103b",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 276.279,
    "s": 57.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23735,
    "c": 0.08173,
    "h": 309.4
  },
  "luminance": 0.01179
}

Semantic roles & 50–950 ramp

primary
#2A103B
secondary
#4C7532
accent
#E14784
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A103B

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

Preview Lab → · Contrast checker → · Palette generator →

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