#2A134D#2A134D

#2A134D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.101 H 296.9°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2A134D
RGBrgb(42, 19, 77)
HSLhsl(264, 60%, 19%)
HSVhsv(264, 75%, 30%)
CMYKcmyk(45.5%, 75.3%, 0%, 69.8%)
CIE-LABlab(12.57, 26.09, -31.53)
CIE-LCHlch(12.57, 40.92, 309.61°)
OKLaboklab(25.77% 0.0456 -0.09)
OKLCHoklch(25.77% 0.101 296.9)
XYZxyz(2.5269, 1.4938, 7.1749)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A134D #364D13
analogous
#13194D #2A134D #47134D
triadic
#2A134D #4D2A13 #134D2A
tetradic
#2A134D #4D1319 #364D13 #134D47
square
#2A134D #4D1319 #364D13 #134D47
split-complementary
#2A134D #4D4713 #194D13
monochromatic
#0D0619 #0F071C #2A134D #451F7E #602BAF

Accessibility & contrast

On white

16.17
#2A134D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A134D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A134D
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A134D#FFFFFF#000000##FFFFFF
##2A134D1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#21212E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a134d;
/* rgb */ color: rgb(42, 19, 77);
/* oklch */ color: oklch(25.8% 0.101 296.9);
Tailwind
colors: {
  custom: {
    50: '#67527f',
    500: '#2a134d',
    950: '#000000',
  },
}
SCSS
$custom: #2a134d;
$custom-light: #67527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a134d",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 77
  },
  "hsl": {
    "h": 263.793,
    "s": 60.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25774,
    "c": 0.10094,
    "h": 296.9
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#2A134D
secondary
#668636
accent
#E444A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A134D

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

Preview Lab → · Contrast checker → · Palette generator →

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