#2A125A#2A125A

#2A125A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.119 H 291.5°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2A125A
RGBrgb(42, 18, 90)
HSLhsl(260, 67%, 21%)
HSVhsv(260, 80%, 35%)
CMYKcmyk(53.3%, 80%, 0%, 64.7%)
CIE-LABlab(13.61, 30.68, -38.68)
CIE-LCHlch(13.61, 49.37, 308.42°)
OKLaboklab(26.9% 0.0436 -0.111)
OKLCHoklch(26.9% 0.119 291.5)
XYZxyz(3.0161, 1.6629, 9.8329)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A125A #425A12
analogous
#121E5A #2A125A #4E125A
triadic
#2A125A #5A2A12 #125A2A
tetradic
#2A125A #5A121E #425A12 #125A4E
square
#2A125A #5A121E #425A12 #125A4E
split-complementary
#2A125A #5A4E12 #1E5A12
monochromatic
#0C051A #120827 #2A125A #421C8D #5A26C0

Accessibility & contrast

On white

15.76
#2A125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A125A
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A125A#FFFFFF#000000##FFFFFF
##2A125A1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#1A2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a125a;
/* rgb */ color: rgb(42, 18, 90);
/* oklch */ color: oklch(26.9% 0.119 291.5);
Tailwind
colors: {
  custom: {
    50: '#6a5389',
    500: '#2a125a',
    950: '#000000',
  },
}
SCSS
$custom: #2a125a;
$custom-light: #6a5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2a125a",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 260,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26898,
    "c": 0.11931,
    "h": 291.5
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#2A125A
secondary
#739335
accent
#EA3EB0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A125A

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

Preview Lab → · Contrast checker → · Palette generator →

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