#2A145F#2A145F

#2A145F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.123 H 289.1°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2A145F
RGBrgb(42, 20, 95)
HSLhsl(258, 65%, 23%)
HSVhsv(258, 79%, 37%)
CMYKcmyk(55.8%, 78.9%, 0%, 62.7%)
CIE-LABlab(14.51, 31.13, -40.56)
CIE-LCHlch(14.51, 51.13, 307.51°)
OKLaboklab(27.69% 0.0404 -0.1166)
OKLCHoklch(27.69% 0.123 289.1)
XYZxyz(3.2700, 1.8186, 11.0030)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A145F #495F14
analogous
#14245F #2A145F #4F145F
triadic
#2A145F #5F2A14 #145F2A
tetradic
#2A145F #5F1424 #495F14 #145F4F
square
#2A145F #5F1424 #495F14 #145F4F
split-complementary
#2A145F #5F4F14 #245F14
monochromatic
#0B0519 #14092C #2A145F #401F92 #5729C4

Accessibility & contrast

On white

15.40
#2A145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A145F
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A145F#FFFFFF#000000##FFFFFF
##2A145F1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#162838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a145f;
/* rgb */ color: rgb(42, 20, 95);
/* oklch */ color: oklch(27.7% 0.123 289.1);
Tailwind
colors: {
  custom: {
    50: '#6a548d',
    500: '#2a145f',
    950: '#000000',
  },
}
SCSS
$custom: #2a145f;
$custom-light: #6a548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a145f",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 257.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27685,
    "c": 0.12337,
    "h": 289.1
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#2A145F
secondary
#7B9738
accent
#E840B7
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A145F

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

Preview Lab → · Contrast checker → · Palette generator →

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