#2A104B#2A104B

#2A104B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.103 H 298.9°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2A104B
RGBrgb(42, 16, 75)
HSLhsl(266, 65%, 18%)
HSVhsv(266, 79%, 29%)
CMYKcmyk(44%, 78.7%, 0%, 70.6%)
CIE-LABlab(11.76, 27.22, -31.46)
CIE-LCHlch(11.76, 41.60, 310.87°)
OKLaboklab(25.14% 0.0496 -0.0898)
OKLCHoklch(25.14% 0.103 298.9)
XYZxyz(2.4098, 1.3708, 6.7929)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A104B #314B10
analogous
#10134B #2A104B #47104B
triadic
#2A104B #4B2A10 #104B2A
tetradic
#2A104B #4B1013 #314B10 #104B47
square
#2A104B #4B1013 #314B10 #104B47
split-complementary
#2A104B #4B4710 #134B10
monochromatic
#0E0519 #0E0519 #2A104B #461B7D #6226B0

Accessibility & contrast

On white

16.48
#2A104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A104B
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A104B#FFFFFF#000000##FFFFFF
##2A104B1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a104b;
/* rgb */ color: rgb(42, 16, 75);
/* oklch */ color: oklch(25.1% 0.103 298.9);
Tailwind
colors: {
  custom: {
    50: '#67517e',
    500: '#2a104b',
    950: '#000000',
  },
}
SCSS
$custom: #2a104b;
$custom-light: #67517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a104b",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 266.441,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25143,
    "c": 0.10259,
    "h": 298.9
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#2A104B
secondary
#608532
accent
#E8409E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A104B

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

Preview Lab → · Contrast checker → · Palette generator →

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