#2A145A#2A145A

#2A145A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.117 H 290.9°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2A145A
RGBrgb(42, 20, 90)
HSLhsl(259, 64%, 22%)
HSVhsv(259, 78%, 35%)
CMYKcmyk(53.3%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.00, 29.56, -38.03)
CIE-LCHlch(14.00, 48.17, 307.85°)
OKLaboklab(27.18% 0.0417 -0.1091)
OKLCHoklch(27.18% 0.117 290.9)
XYZxyz(3.0499, 1.7306, 9.8442)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A145A #445A14
analogous
#14215A #2A145A #4D145A
triadic
#2A145A #5A2A14 #145A2A
tetradic
#2A145A #5A1421 #445A14 #145A4D
square
#2A145A #5A1421 #445A14 #145A4D
split-complementary
#2A145A #5A4D14 #215A14
monochromatic
#0C0619 #130928 #2A145A #411F8C #592ABE

Accessibility & contrast

On white

15.60
#2A145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A145A
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A145A#FFFFFF#000000##FFFFFF
##2A145A1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1A2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a145a;
/* rgb */ color: rgb(42, 20, 90);
/* oklch */ color: oklch(27.2% 0.117 290.9);
Tailwind
colors: {
  custom: {
    50: '#695489',
    500: '#2a145a',
    950: '#000000',
  },
}
SCSS
$custom: #2a145a;
$custom-light: #695489;
$custom-dark: #000000;
JSON
{
  "hex": "#2a145a",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 258.857,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27178,
    "c": 0.11684,
    "h": 290.9
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#2A145A
secondary
#769238
accent
#E741B3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A145A

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

Preview Lab → · Contrast checker → · Palette generator →

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