#2A138F#2A138F

#2A138F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.183 H 277.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2A138F
RGBrgb(42, 19, 143)
HSLhsl(251, 77%, 32%)
HSVhsv(251, 87%, 56%)
CMYKcmyk(70.6%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.80, 46.34, -62.71)
CIE-LCHlch(19.80, 77.97, 306.46°)
OKLaboklab(32.97% 0.0251 -0.1811)
OKLCHoklch(32.97% 0.183 277.9)
XYZxyz(6.1440, 2.9406, 26.2251)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A138F #788F13
analogous
#133A8F #2A138F #68138F
triadic
#2A138F #8F2A13 #138F2A
tetradic
#2A138F #8F133A #788F13 #138F68
square
#2A138F #8F133A #788F13 #138F68
split-complementary
#2A138F #8F6813 #3A8F13
monochromatic
#0A0523 #1A0C59 #2A138F #3A1AC5 #5838E5

Accessibility & contrast

On white

13.22
#2A138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A138F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A138F#FFFFFF#000000##FFFFFF
##2A138F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a138f;
/* rgb */ color: rgb(42, 19, 143);
/* oklch */ color: oklch(33.0% 0.183 277.9);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2a138f',
    950: '#000000',
  },
}
SCSS
$custom: #2a138f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a138f",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 251.129,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.18284,
    "h": 277.9
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2A138F
secondary
#AAC33B
accent
#F335D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2A138F

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

Preview Lab → · Contrast checker → · Palette generator →

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