#2A136C#2A136C

#2A136C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.141 H 285.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2A136C
RGBrgb(42, 19, 108)
HSLhsl(256, 70%, 25%)
HSVhsv(256, 82%, 42%)
CMYKcmyk(61.1%, 82.4%, 0%, 57.6%)
CIE-LABlab(15.70, 35.73, -47.18)
CIE-LCHlch(15.70, 59.19, 307.14°)
OKLaboklab(28.94% 0.0372 -0.1359)
OKLCHoklch(28.94% 0.141 285.3)
XYZxyz(3.8937, 2.0405, 14.3731)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A136C #556C13
analogous
#13286C #2A136C #57136C
triadic
#2A136C #6C2A13 #136C2A
tetradic
#2A136C #6C1328 #556C13 #136C57
square
#2A136C #6C1328 #556C13 #136C57
split-complementary
#2A136C #6C5713 #286C13
monochromatic
#0A051A #160A38 #2A136C #3E1CA0 #5225D4

Accessibility & contrast

On white

14.91
#2A136C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A136C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A136C
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A136C#FFFFFF#000000##FFFFFF
##2A136C1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#062D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a136c;
/* rgb */ color: rgb(42, 19, 108);
/* oklch */ color: oklch(28.9% 0.141 285.3);
Tailwind
colors: {
  custom: {
    50: '#6d5497',
    500: '#2a136c',
    950: '#000000',
  },
}
SCSS
$custom: #2a136c;
$custom-light: #6d5497;
$custom-dark: #000000;
JSON
{
  "hex": "#2a136c",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 108
  },
  "hsl": {
    "h": 255.506,
    "s": 70.079,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28938,
    "c": 0.14094,
    "h": 285.3
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#2A136C
secondary
#87A338
accent
#ED3BBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A136C

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

Preview Lab → · Contrast checker → · Palette generator →

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