#2A145D#2A145D

#2A145D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.121 H 289.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2A145D
RGBrgb(42, 20, 93)
HSLhsl(258, 65%, 22%)
HSVhsv(258, 78%, 36%)
CMYKcmyk(54.8%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.30, 30.50, -39.56)
CIE-LCHlch(14.30, 49.95, 307.64°)
OKLaboklab(27.48% 0.0409 -0.1136)
OKLCHoklch(27.48% 0.121 289.8)
XYZxyz(3.1802, 1.7827, 10.5303)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A145D #475D14
analogous
#14235D #2A145D #4F145D
triadic
#2A145D #5D2A14 #145D2A
tetradic
#2A145D #5D1423 #475D14 #145D4F
square
#2A145D #5D1423 #475D14 #145D4F
split-complementary
#2A145D #5D4F14 #235D14
monochromatic
#0B0519 #13092B #2A145D #411F8F #572AC2

Accessibility & contrast

On white

15.48
#2A145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A145D
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A145D#FFFFFF#000000##FFFFFF
##2A145D1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#182837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a145d;
/* rgb */ color: rgb(42, 20, 93);
/* oklch */ color: oklch(27.5% 0.121 289.8);
Tailwind
colors: {
  custom: {
    50: '#6a548c',
    500: '#2a145d',
    950: '#000000',
  },
}
SCSS
$custom: #2a145d;
$custom-light: #6a548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a145d",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 258.082,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2748,
    "c": 0.12076,
    "h": 289.8
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#2A145D
secondary
#799538
accent
#E840B5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A145D

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

Preview Lab → · Contrast checker → · Palette generator →

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