#2A145C#2A145C

#2A145C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.119 H 290.2°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2A145C
RGBrgb(42, 20, 92)
HSLhsl(258, 64%, 22%)
HSVhsv(258, 78%, 36%)
CMYKcmyk(54.3%, 78.3%, 0%, 63.9%)
CIE-LABlab(14.20, 30.19, -39.05)
CIE-LCHlch(14.20, 49.36, 307.70°)
OKLaboklab(27.38% 0.0412 -0.1121)
OKLCHoklch(27.38% 0.119 290.2)
XYZxyz(3.1362, 1.7651, 10.2986)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A145C #465C14
analogous
#14225C #2A145C #4E145C
triadic
#2A145C #5C2A14 #145C2A
tetradic
#2A145C #5C1422 #465C14 #145C4E
square
#2A145C #5C1422 #465C14 #145C4E
split-complementary
#2A145C #5C4E14 #225C14
monochromatic
#0B0519 #13092A #2A145C #411F8E #582AC1

Accessibility & contrast

On white

15.52
#2A145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A145C
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A145C#FFFFFF#000000##FFFFFF
##2A145C1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#182736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a145c;
/* rgb */ color: rgb(42, 20, 92);
/* oklch */ color: oklch(27.4% 0.119 290.2);
Tailwind
colors: {
  custom: {
    50: '#6a548b',
    500: '#2a145c',
    950: '#000000',
  },
}
SCSS
$custom: #2a145c;
$custom-light: #6a548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a145c",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 258.333,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27379,
    "c": 0.11947,
    "h": 290.2
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#2A145C
secondary
#789438
accent
#E741B4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A145C

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

Preview Lab → · Contrast checker → · Palette generator →

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