#2A104F#2A104F

#2A104F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.108 H 296.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#2A104F
RGBrgb(42, 16, 79)
HSLhsl(265, 66%, 19%)
HSVhsv(265, 80%, 31%)
CMYKcmyk(46.8%, 79.7%, 0%, 69%)
CIE-LABlab(12.14, 28.42, -33.60)
CIE-LCHlch(12.14, 44.01, 310.22°)
OKLaboklab(25.53% 0.0486 -0.0961)
OKLCHoklch(25.53% 0.108 296.8)
XYZxyz(2.5510, 1.4273, 7.5367)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A104F #354F10
analogous
#10154F #2A104F #49104F
triadic
#2A104F #4F2A10 #104F2A
tetradic
#2A104F #4F1015 #354F10 #104F49
square
#2A104F #4F1015 #354F10 #104F49
split-complementary
#2A104F #4F4910 #154F10
monochromatic
#0E0519 #0F061C #2A104F #451A82 #6025B5

Accessibility & contrast

On white

16.34
#2A104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A104F
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A104F#FFFFFF#000000##FFFFFF
##2A104F1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#20202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a104f;
/* rgb */ color: rgb(42, 16, 79);
/* oklch */ color: oklch(25.5% 0.108 296.8);
Tailwind
colors: {
  custom: {
    50: '#685181',
    500: '#2a104f',
    950: '#000000',
  },
}
SCSS
$custom: #2a104f;
$custom-light: #685181;
$custom-dark: #000000;
JSON
{
  "hex": "#2a104f",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 264.762,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25526,
    "c": 0.10772,
    "h": 296.8
  },
  "luminance": 0.01427
}

Semantic roles & 50–950 ramp

primary
#2A104F
secondary
#658932
accent
#E93FA3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A104F

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

Preview Lab → · Contrast checker → · Palette generator →

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