#2A104E#2A104E

#2A104E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.106 H 297.3°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2A104E
RGBrgb(42, 16, 78)
HSLhsl(265, 66%, 18%)
HSVhsv(265, 79%, 31%)
CMYKcmyk(46.2%, 79.5%, 0%, 69.4%)
CIE-LABlab(12.04, 28.12, -33.07)
CIE-LCHlch(12.04, 43.41, 310.37°)
OKLaboklab(25.43% 0.0489 -0.0946)
OKLCHoklch(25.43% 0.106 297.3)
XYZxyz(2.5149, 1.4128, 7.3465)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A104E #344E10
analogous
#10154E #2A104E #49104E
triadic
#2A104E #4E2A10 #104E2A
tetradic
#2A104E #4E1015 #344E10 #104E49
square
#2A104E #4E1015 #344E10 #104E49
split-complementary
#2A104E #4E4910 #154E10
monochromatic
#0E0519 #0F061B #2A104E #451A81 #6125B4

Accessibility & contrast

On white

16.37
#2A104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A104E
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A104E#FFFFFF#000000##FFFFFF
##2A104E1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#21202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a104e;
/* rgb */ color: rgb(42, 16, 78);
/* oklch */ color: oklch(25.4% 0.106 297.3);
Tailwind
colors: {
  custom: {
    50: '#685180',
    500: '#2a104e',
    950: '#000000',
  },
}
SCSS
$custom: #2a104e;
$custom-light: #685180;
$custom-dark: #000000;
JSON
{
  "hex": "#2a104e",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 265.161,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25429,
    "c": 0.10644,
    "h": 297.3
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#2A104E
secondary
#648832
accent
#E93FA2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A104E

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

Preview Lab → · Contrast checker → · Palette generator →

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