#2A147B#2A147B

#2A147B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.158 H 281.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2A147B
RGBrgb(42, 20, 123)
HSLhsl(253, 72%, 28%)
HSVhsv(253, 84%, 48%)
CMYKcmyk(65.9%, 83.7%, 0%, 51.8%)
CIE-LABlab(17.56, 39.88, -53.80)
CIE-LCHlch(17.56, 66.96, 306.55°)
OKLaboklab(30.74% 0.0316 -0.1552)
OKLCHoklch(30.74% 0.158 281.5)
XYZxyz(4.7790, 2.4223, 18.9508)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A147B #657B14
analogous
#14317B #2A147B #5E147B
triadic
#2A147B #7B2A14 #147B2A
tetradic
#2A147B #7B1431 #657B14 #147B5E
square
#2A147B #7B1431 #657B14 #147B5E
split-complementary
#2A147B #7B5E14 #317B14
monochromatic
#09041A #180B46 #2A147B #3C1DB0 #522DDD

Accessibility & contrast

On white

14.15
#2A147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A147B
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A147B#FFFFFF#000000##FFFFFF
##2A147B1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a147b;
/* rgb */ color: rgb(42, 20, 123);
/* oklch */ color: oklch(30.7% 0.158 281.5);
Tailwind
colors: {
  custom: {
    50: '#7056a2',
    500: '#2a147b',
    950: '#000000',
  },
}
SCSS
$custom: #2a147b;
$custom-light: #7056a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a147b",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 252.816,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30736,
    "c": 0.15841,
    "h": 281.5
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#2A147B
secondary
#97B13A
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A147B

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

Preview Lab → · Contrast checker → · Palette generator →

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