#2A128F#2A128F

#2A128F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.184 H 278.0°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2A128F
RGBrgb(42, 18, 143)
HSLhsl(252, 78%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(70.6%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.67, 46.74, -62.93)
CIE-LCHlch(19.67, 78.39, 306.60°)
OKLaboklab(32.88% 0.0255 -0.1817)
OKLCHoklch(32.88% 0.184 278)
XYZxyz(6.1275, 2.9075, 26.2196)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A128F #778F12
analogous
#12398F #2A128F #69128F
triadic
#2A128F #8F2A12 #128F2A
tetradic
#2A128F #8F1239 #778F12 #128F69
square
#2A128F #8F1239 #778F12 #128F69
split-complementary
#2A128F #8F6912 #398F12
monochromatic
#0A0422 #1A0B59 #2A128F #3A19C5 #5836E6

Accessibility & contrast

On white

13.28
#2A128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A128F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A128F#FFFFFF#000000##FFFFFF
##2A128F1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a128f;
/* rgb */ color: rgb(42, 18, 143);
/* oklch */ color: oklch(32.9% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2a128f',
    950: '#000000',
  },
}
SCSS
$custom: #2a128f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a128f",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 251.52,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32882,
    "c": 0.18351,
    "h": 278
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#2A128F
secondary
#A9C33A
accent
#F434CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2A128F

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

Preview Lab → · Contrast checker → · Palette generator →

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