#2A135A#2A135A

#2A135A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.118 H 291.2°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2A135A
RGBrgb(42, 19, 90)
HSLhsl(259, 65%, 21%)
HSVhsv(259, 79%, 35%)
CMYKcmyk(53.3%, 78.9%, 0%, 64.7%)
CIE-LABlab(13.80, 30.12, -38.36)
CIE-LCHlch(13.80, 48.77, 308.14°)
OKLaboklab(27.03% 0.0427 -0.1101)
OKLCHoklch(27.03% 0.118 291.2)
XYZxyz(3.0327, 1.6961, 9.8385)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A135A #435A13
analogous
#13205A #2A135A #4E135A
triadic
#2A135A #5A2A13 #135A2A
tetradic
#2A135A #5A1320 #435A13 #135A4E
square
#2A135A #5A1320 #435A13 #135A4E
split-complementary
#2A135A #5A4E13 #205A13
monochromatic
#0C0519 #120827 #2A135A #421E8D #5928BF

Accessibility & contrast

On white

15.68
#2A135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A135A
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A135A#FFFFFF#000000##FFFFFF
##2A135A1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1A2635
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a135a;
/* rgb */ color: rgb(42, 19, 90);
/* oklch */ color: oklch(27.0% 0.118 291.2);
Tailwind
colors: {
  custom: {
    50: '#695389',
    500: '#2a135a',
    950: '#000000',
  },
}
SCSS
$custom: #2a135a;
$custom-light: #695389;
$custom-dark: #000000;
JSON
{
  "hex": "#2a135a",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 259.437,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27035,
    "c": 0.11809,
    "h": 291.2
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#2A135A
secondary
#759237
accent
#E840B2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A135A

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

Preview Lab → · Contrast checker → · Palette generator →

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