#2A104D#2A104D

#2A104D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.105 H 297.8°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2A104D
RGBrgb(42, 16, 77)
HSLhsl(266, 66%, 18%)
HSVhsv(266, 79%, 30%)
CMYKcmyk(45.5%, 79.2%, 0%, 69.8%)
CIE-LABlab(11.95, 27.82, -32.54)
CIE-LCHlch(11.95, 42.81, 310.53°)
OKLaboklab(25.33% 0.0491 -0.093)
OKLCHoklch(25.33% 0.105 297.8)
XYZxyz(2.4793, 1.3986, 7.1591)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A104D #334D10
analogous
#10144D #2A104D #48104D
triadic
#2A104D #4D2A10 #104D2A
tetradic
#2A104D #4D1014 #334D10 #104D48
square
#2A104D #4D1014 #334D10 #104D48
split-complementary
#2A104D #4D4810 #144D10
monochromatic
#0E0519 #0E051A #2A104D #461B80 #6125B2

Accessibility & contrast

On white

16.41
#2A104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A104D
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A104D#FFFFFF#000000##FFFFFF
##2A104D1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#211F2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a104d;
/* rgb */ color: rgb(42, 16, 77);
/* oklch */ color: oklch(25.3% 0.105 297.8);
Tailwind
colors: {
  custom: {
    50: '#68517f',
    500: '#2a104d',
    950: '#000000',
  },
}
SCSS
$custom: #2a104d;
$custom-light: #68517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a104d",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 265.574,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25333,
    "c": 0.10516,
    "h": 297.8
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#2A104D
secondary
#638732
accent
#E93FA0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A104D

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

Preview Lab → · Contrast checker → · Palette generator →

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