#2A135E#2A135E

#2A135E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.123 H 289.7°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2A135E
RGBrgb(42, 19, 94)
HSLhsl(258, 66%, 22%)
HSVhsv(258, 80%, 37%)
CMYKcmyk(55.3%, 79.8%, 0%, 63.1%)
CIE-LABlab(14.21, 31.37, -40.38)
CIE-LCHlch(14.21, 51.13, 307.84°)
OKLaboklab(27.44% 0.0416 -0.116)
OKLCHoklch(27.44% 0.123 289.7)
XYZxyz(3.2075, 1.7660, 10.7594)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A135E #475E13
analogous
#13225E #2A135E #50135E
triadic
#2A135E #5E2A13 #135E2A
tetradic
#2A135E #5E1322 #475E13 #135E50
square
#2A135E #5E1322 #475E13 #135E50
split-complementary
#2A135E #5E5013 #225E13
monochromatic
#0B0519 #13092B #2A135E #411D91 #5728C4

Accessibility & contrast

On white

15.52
#2A135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A135E
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A135E#FFFFFF#000000##FFFFFF
##2A135E1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#172837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a135e;
/* rgb */ color: rgb(42, 19, 94);
/* oklch */ color: oklch(27.4% 0.123 289.7);
Tailwind
colors: {
  custom: {
    50: '#6a538c',
    500: '#2a135e',
    950: '#000000',
  },
}
SCSS
$custom: #2a135e;
$custom-light: #6a538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a135e",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 258.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27444,
    "c": 0.12326,
    "h": 289.7
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#2A135E
secondary
#799637
accent
#E93FB5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A135E

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

Preview Lab → · Contrast checker → · Palette generator →

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