#2A138A#2A138A

#2A138A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.177 H 278.7°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2A138A
RGBrgb(42, 19, 138)
HSLhsl(252, 76%, 31%)
HSVhsv(252, 86%, 54%)
CMYKcmyk(69.6%, 86.2%, 0%, 45.9%)
CIE-LABlab(19.19, 44.86, -60.59)
CIE-LCHlch(19.19, 75.39, 306.51°)
OKLaboklab(32.38% 0.0269 -0.175)
OKLCHoklch(32.38% 0.177 278.7)
XYZxyz(5.7737, 2.7925, 24.2746)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A138A #738A13
analogous
#13378A #2A138A #65138A
triadic
#2A138A #8A2A13 #138A2A
tetradic
#2A138A #8A1337 #738A13 #138A65
square
#2A138A #8A1337 #738A13 #138A65
split-complementary
#2A138A #8A6513 #378A13
monochromatic
#09041E #1A0C54 #2A138A #3A1AC0 #5634E3

Accessibility & contrast

On white

13.47
#2A138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A138A
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A138A#FFFFFF#000000##FFFFFF
##2A138A1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a138a;
/* rgb */ color: rgb(42, 19, 138);
/* oklch */ color: oklch(32.4% 0.177 278.7);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#2a138a',
    950: '#000000',
  },
}
SCSS
$custom: #2a138a;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a138a",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 251.597,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32378,
    "c": 0.17703,
    "h": 278.7
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#2A138A
secondary
#A5BE3A
accent
#F235CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A138A

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

Preview Lab → · Contrast checker → · Palette generator →

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