#2A125D#2A125D

#2A125D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.123 H 290.3°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2A125D
RGBrgb(42, 18, 93)
HSLhsl(259, 68%, 22%)
HSVhsv(259, 81%, 36%)
CMYKcmyk(54.8%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.91, 31.60, -40.19)
CIE-LCHlch(13.91, 51.13, 308.18°)
OKLaboklab(27.21% 0.0428 -0.1155)
OKLCHoklch(27.21% 0.123 290.3)
XYZxyz(3.1464, 1.7150, 10.5191)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A125D #455D12
analogous
#12205D #2A125D #50125D
triadic
#2A125D #5D2A12 #125D2A
tetradic
#2A125D #5D1220 #455D12 #125D50
square
#2A125D #5D1220 #455D12 #125D50
split-complementary
#2A125D #5D5012 #205D12
monochromatic
#0C051A #13082A #2A125D #411C90 #5826C4

Accessibility & contrast

On white

15.64
#2A125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A125D
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A125D#FFFFFF#000000##FFFFFF
##2A125D1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#182737
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a125d;
/* rgb */ color: rgb(42, 18, 93);
/* oklch */ color: oklch(27.2% 0.123 290.3);
Tailwind
colors: {
  custom: {
    50: '#6a538c',
    500: '#2a125d',
    950: '#000000',
  },
}
SCSS
$custom: #2a125d;
$custom-light: #6a538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a125d",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 259.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27206,
    "c": 0.12315,
    "h": 290.3
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#2A125D
secondary
#779535
accent
#EA3DB3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A125D

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

Preview Lab → · Contrast checker → · Palette generator →

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