#2A147C#2A147C

#2A147C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.160 H 281.3°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2A147C
RGBrgb(42, 20, 124)
HSLhsl(253, 72%, 28%)
HSVhsv(253, 84%, 49%)
CMYKcmyk(66.1%, 83.9%, 0%, 51.4%)
CIE-LABlab(17.68, 40.18, -54.25)
CIE-LCHlch(17.68, 67.51, 306.53°)
OKLaboklab(30.85% 0.0313 -0.1565)
OKLCHoklch(30.85% 0.16 281.3)
XYZxyz(4.8419, 2.4474, 19.2821)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A147C #667C14
analogous
#14327C #2A147C #5E147C
triadic
#2A147C #7C2A14 #147C2A
tetradic
#2A147C #7C1432 #667C14 #147C5E
square
#2A147C #7C1432 #667C14 #147C5E
split-complementary
#2A147C #7C5E14 #327C14
monochromatic
#09041A #180B47 #2A147C #3C1DB1 #522DDD

Accessibility & contrast

On white

14.10
#2A147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A147C
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A147C#FFFFFF#000000##FFFFFF
##2A147C1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a147c;
/* rgb */ color: rgb(42, 20, 124);
/* oklch */ color: oklch(30.9% 0.160 281.3);
Tailwind
colors: {
  custom: {
    50: '#7056a3',
    500: '#2a147c',
    950: '#000000',
  },
}
SCSS
$custom: #2a147c;
$custom-light: #7056a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a147c",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 252.692,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3085,
    "c": 0.15962,
    "h": 281.3
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#2A147C
secondary
#98B23A
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A147C

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

Preview Lab → · Contrast checker → · Palette generator →

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