#2A146C#2A146C

#2A146C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.140 H 285.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2A146C
RGBrgb(42, 20, 108)
HSLhsl(255, 69%, 25%)
HSVhsv(255, 81%, 42%)
CMYKcmyk(61.1%, 81.5%, 0%, 57.6%)
CIE-LABlab(15.88, 35.22, -46.89)
CIE-LCHlch(15.88, 58.64, 306.91°)
OKLaboklab(29.06% 0.0365 -0.1351)
OKLCHoklch(29.06% 0.14 285.1)
XYZxyz(3.9110, 2.0750, 14.3789)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A146C #566C14
analogous
#142A6C #2A146C #56146C
triadic
#2A146C #6C2A14 #146C2A
tetradic
#2A146C #6C142A #566C14 #146C56
square
#2A146C #6C142A #566C14 #146C56
split-complementary
#2A146C #6C5614 #2A6C14
monochromatic
#0A051A #160A38 #2A146C #3E1EA0 #5227D3

Accessibility & contrast

On white

14.84
#2A146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A146C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A146C
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A146C#FFFFFF#000000##FFFFFF
##2A146C1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#062E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a146c;
/* rgb */ color: rgb(42, 20, 108);
/* oklch */ color: oklch(29.1% 0.140 285.1);
Tailwind
colors: {
  custom: {
    50: '#6d5597',
    500: '#2a146c',
    950: '#000000',
  },
}
SCSS
$custom: #2a146c;
$custom-light: #6d5597;
$custom-dark: #000000;
JSON
{
  "hex": "#2a146c",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 255,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29062,
    "c": 0.13993,
    "h": 285.1
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#2A146C
secondary
#88A339
accent
#EC3CC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A146C

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

Preview Lab → · Contrast checker → · Palette generator →

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