#2A104A#2A104A

#2A104A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.101 H 299.4°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2A104A
RGBrgb(42, 16, 74)
HSLhsl(267, 64%, 18%)
HSVhsv(267, 78%, 29%)
CMYKcmyk(43.2%, 78.4%, 0%, 71%)
CIE-LABlab(11.67, 26.93, -30.91)
CIE-LCHlch(11.67, 41.00, 311.06°)
OKLaboklab(25.05% 0.0498 -0.0882)
OKLCHoklch(25.05% 0.101 299.4)
XYZxyz(2.3759, 1.3572, 6.6140)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A104A #304A10
analogous
#10134A #2A104A #47104A
triadic
#2A104A #4A2A10 #104A2A
tetradic
#2A104A #4A1013 #304A10 #104A47
square
#2A104A #4A1013 #304A10 #104A47
split-complementary
#2A104A #4A4710 #134A10
monochromatic
#0E0519 #0E0519 #2A104A #471B7C #6326AF

Accessibility & contrast

On white

16.52
#2A104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A104A
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A104A#FFFFFF#000000##FFFFFF
##2A104A1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#231E2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a104a;
/* rgb */ color: rgb(42, 16, 74);
/* oklch */ color: oklch(25.0% 0.101 299.4);
Tailwind
colors: {
  custom: {
    50: '#67507d',
    500: '#2a104a',
    950: '#000000',
  },
}
SCSS
$custom: #2a104a;
$custom-light: #67507d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a104a",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 266.897,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25049,
    "c": 0.10129,
    "h": 299.4
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#2A104A
secondary
#5F8432
accent
#E7409D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A104A

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

Preview Lab → · Contrast checker → · Palette generator →

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