#2A136A#2A136A

#2A136A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.138 H 285.9°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2A136A
RGBrgb(42, 19, 106)
HSLhsl(256, 70%, 25%)
HSVhsv(256, 82%, 42%)
CMYKcmyk(60.4%, 82.1%, 0%, 58.4%)
CIE-LABlab(15.48, 35.11, -46.23)
CIE-LCHlch(15.48, 58.06, 307.21°)
OKLaboklab(28.72% 0.0379 -0.1332)
OKLCHoklch(28.72% 0.138 285.9)
XYZxyz(3.7885, 1.9984, 13.8190)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A136A #536A13
analogous
#13286A #2A136A #56136A
triadic
#2A136A #6A2A13 #136A2A
tetradic
#2A136A #6A1328 #536A13 #136A56
square
#2A136A #6A1328 #536A13 #136A56
split-complementary
#2A136A #6A5613 #286A13
monochromatic
#0A051A #150A36 #2A136A #3F1C9E #5326D2

Accessibility & contrast

On white

15.00
#2A136A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A136A
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A136A#FFFFFF#000000##FFFFFF
##2A136A1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#092C3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a136a;
/* rgb */ color: rgb(42, 19, 106);
/* oklch */ color: oklch(28.7% 0.138 285.9);
Tailwind
colors: {
  custom: {
    50: '#6d5496',
    500: '#2a136a',
    950: '#000000',
  },
}
SCSS
$custom: #2a136a;
$custom-light: #6d5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2a136a",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 106
  },
  "hsl": {
    "h": 255.862,
    "s": 69.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28719,
    "c": 0.13845,
    "h": 285.9
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#2A136A
secondary
#85A138
accent
#EC3BBE
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A136A

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

Preview Lab → · Contrast checker → · Palette generator →

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