#2A125F#2A125F

#2A125F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.126 H 289.6°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2A125F
RGBrgb(42, 18, 95)
HSLhsl(259, 68%, 22%)
HSVhsv(259, 81%, 37%)
CMYKcmyk(55.8%, 81.1%, 0%, 62.7%)
CIE-LABlab(14.12, 32.22, -41.19)
CIE-LCHlch(14.12, 52.30, 308.03°)
OKLaboklab(27.42% 0.0422 -0.1184)
OKLCHoklch(27.42% 0.126 289.6)
XYZxyz(3.2361, 1.7509, 10.9917)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A125F #475F12
analogous
#12215F #2A125F #51125F
triadic
#2A125F #5F2A12 #125F2A
tetradic
#2A125F #5F1221 #475F12 #125F51
square
#2A125F #5F1221 #475F12 #125F51
split-complementary
#2A125F #5F5112 #215F12
monochromatic
#0B051A #13082C #2A125F #411C92 #5725C6

Accessibility & contrast

On white

15.55
#2A125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A125F
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A125F#FFFFFF#000000##FFFFFF
##2A125F1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#162738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a125f;
/* rgb */ color: rgb(42, 18, 95);
/* oklch */ color: oklch(27.4% 0.126 289.6);
Tailwind
colors: {
  custom: {
    50: '#6a538d',
    500: '#2a125f',
    950: '#000000',
  },
}
SCSS
$custom: #2a125f;
$custom-light: #6a538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a125f",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 258.701,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27415,
    "c": 0.12569,
    "h": 289.6
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#2A125F
secondary
#799736
accent
#EB3DB5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A125F

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

Preview Lab → · Contrast checker → · Palette generator →

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