#2A104C#2A104C

#2A104C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.104 H 298.4°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2A104C
RGBrgb(42, 16, 76)
HSLhsl(266, 65%, 18%)
HSVhsv(266, 79%, 30%)
CMYKcmyk(44.7%, 78.9%, 0%, 70.2%)
CIE-LABlab(11.85, 27.52, -32.00)
CIE-LCHlch(11.85, 42.20, 310.70°)
OKLaboklab(25.24% 0.0493 -0.0914)
OKLCHoklch(25.24% 0.104 298.4)
XYZxyz(2.4443, 1.3846, 6.9745)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A104C #324C10
analogous
#10144C #2A104C #48104C
triadic
#2A104C #4C2A10 #104C2A
tetradic
#2A104C #4C1014 #324C10 #104C48
square
#2A104C #4C1014 #324C10 #104C48
split-complementary
#2A104C #4C4810 #144C10
monochromatic
#0E0519 #0E0519 #2A104C #461B7F #6225B1

Accessibility & contrast

On white

16.44
#2A104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A104C
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A104C#FFFFFF#000000##FFFFFF
##2A104C1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#221F2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a104c;
/* rgb */ color: rgb(42, 16, 76);
/* oklch */ color: oklch(25.2% 0.104 298.4);
Tailwind
colors: {
  custom: {
    50: '#67517f',
    500: '#2a104c',
    950: '#000000',
  },
}
SCSS
$custom: #2a104c;
$custom-light: #67517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a104c",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 266,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25238,
    "c": 0.10387,
    "h": 298.4
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#2A104C
secondary
#618632
accent
#E8409F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A104C

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

Preview Lab → · Contrast checker → · Palette generator →

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