#2A136B#2A136B

#2A136B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.140 H 285.6°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#2A136B
RGBrgb(42, 19, 107)
HSLhsl(256, 70%, 25%)
HSVhsv(256, 82%, 42%)
CMYKcmyk(60.7%, 82.2%, 0%, 58%)
CIE-LABlab(15.59, 35.42, -46.71)
CIE-LCHlch(15.59, 58.62, 307.18°)
OKLaboklab(28.83% 0.0376 -0.1345)
OKLCHoklch(28.83% 0.14 285.6)
XYZxyz(3.8408, 2.0193, 14.0944)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A136B #546B13
analogous
#13286B #2A136B #56136B
triadic
#2A136B #6B2A13 #136B2A
tetradic
#2A136B #6B1328 #546B13 #136B56
square
#2A136B #6B1328 #546B13 #136B56
split-complementary
#2A136B #6B5613 #286B13
monochromatic
#0A051A #160A37 #2A136B #3E1C9F #5325D3

Accessibility & contrast

On white

14.96
#2A136B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A136B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A136B
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A136B#FFFFFF#000000##FFFFFF
##2A136B1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#082D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a136b;
/* rgb */ color: rgb(42, 19, 107);
/* oklch */ color: oklch(28.8% 0.140 285.6);
Tailwind
colors: {
  custom: {
    50: '#6d5496',
    500: '#2a136b',
    950: '#000000',
  },
}
SCSS
$custom: #2a136b;
$custom-light: #6d5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2a136b",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 107
  },
  "hsl": {
    "h": 255.682,
    "s": 69.841,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28828,
    "c": 0.1397,
    "h": 285.6
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#2A136B
secondary
#86A238
accent
#ED3BBE
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A136B

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

Preview Lab → · Contrast checker → · Palette generator →

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