#2A134A#2A134A

#2A134A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.097 H 298.4°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2A134A
RGBrgb(42, 19, 74)
HSLhsl(265, 59%, 18%)
HSVhsv(265, 74%, 29%)
CMYKcmyk(43.2%, 74.3%, 0%, 71%)
CIE-LABlab(12.30, 25.17, -29.89)
CIE-LCHlch(12.30, 39.07, 310.11°)
OKLaboklab(25.5% 0.0461 -0.0852)
OKLCHoklch(25.5% 0.097 298.4)
XYZxyz(2.4234, 1.4524, 6.6299)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A134A #334A13
analogous
#13174A #2A134A #45134A
triadic
#2A134A #4A2A13 #134A2A
tetradic
#2A134A #4A1317 #334A13 #134A45
square
#2A134A #4A1317 #334A13 #134A45
split-complementary
#2A134A #4A4513 #174A13
monochromatic
#0E0618 #0E0619 #2A134A #46207B #612CAB

Accessibility & contrast

On white

16.27
#2A134A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A134A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A134A
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A134A#FFFFFF#000000##FFFFFF
##2A134A1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#22202C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a134a;
/* rgb */ color: rgb(42, 19, 74);
/* oklch */ color: oklch(25.5% 0.097 298.4);
Tailwind
colors: {
  custom: {
    50: '#67527d',
    500: '#2a134a',
    950: '#000000',
  },
}
SCSS
$custom: #2a134a;
$custom-light: #67527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a134a",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 74
  },
  "hsl": {
    "h": 265.091,
    "s": 59.14,
    "l": 18.235
  },
  "oklch": {
    "l": 0.255,
    "c": 0.0969,
    "h": 298.4
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#2A134A
secondary
#638336
accent
#E245A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A134A

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

Preview Lab → · Contrast checker → · Palette generator →

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