#2A145B#2A145B

#2A145B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.118 H 290.5°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2A145B
RGBrgb(42, 20, 91)
HSLhsl(259, 64%, 22%)
HSVhsv(259, 78%, 36%)
CMYKcmyk(53.8%, 78%, 0%, 64.3%)
CIE-LABlab(14.10, 29.87, -38.54)
CIE-LCHlch(14.10, 48.76, 307.78°)
OKLaboklab(27.28% 0.0414 -0.1106)
OKLCHoklch(27.28% 0.118 290.5)
XYZxyz(3.0928, 1.7478, 10.0699)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A145B #455B14
analogous
#14215B #2A145B #4E145B
triadic
#2A145B #5B2A14 #145B2A
tetradic
#2A145B #5B1421 #455B14 #145B4E
square
#2A145B #5B1421 #455B14 #145B4E
split-complementary
#2A145B #5B4E14 #215B14
monochromatic
#0C0619 #130929 #2A145B #411F8D #582ABF

Accessibility & contrast

On white

15.56
#2A145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A145B
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A145B#FFFFFF#000000##FFFFFF
##2A145B1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#192736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a145b;
/* rgb */ color: rgb(42, 20, 91);
/* oklch */ color: oklch(27.3% 0.118 290.5);
Tailwind
colors: {
  custom: {
    50: '#6a548a',
    500: '#2a145b',
    950: '#000000',
  },
}
SCSS
$custom: #2a145b;
$custom-light: #6a548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a145b",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 258.592,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27278,
    "c": 0.11816,
    "h": 290.5
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A145B

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

Preview Lab → · Contrast checker → · Palette generator →

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