#2A147E#2A147E

#2A147E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.162 H 280.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2A147E
RGBrgb(42, 20, 126)
HSLhsl(252, 73%, 29%)
HSVhsv(252, 84%, 49%)
CMYKcmyk(66.7%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.91, 40.80, -55.14)
CIE-LCHlch(17.91, 68.59, 306.50°)
OKLaboklab(31.08% 0.0306 -0.1591)
OKLCHoklch(31.08% 0.162 280.9)
XYZxyz(4.9697, 2.4985, 19.9550)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A147E #687E14
analogous
#14337E #2A147E #5F147E
triadic
#2A147E #7E2A14 #147E2A
tetradic
#2A147E #7E1433 #687E14 #147E5F
square
#2A147E #7E1433 #687E14 #147E5F
split-complementary
#2A147E #7E5F14 #337E14
monochromatic
#09041A #180C49 #2A147E #3C1CB3 #532EDE

Accessibility & contrast

On white

14.00
#2A147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A147E
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A147E#FFFFFF#000000##FFFFFF
##2A147E1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a147e;
/* rgb */ color: rgb(42, 20, 126);
/* oklch */ color: oklch(31.1% 0.162 280.9);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2a147e',
    950: '#000000',
  },
}
SCSS
$custom: #2a147e;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a147e",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 252.453,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31079,
    "c": 0.16203,
    "h": 280.9
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#2A147E
secondary
#9AB33A
accent
#EF38C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A147E

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

Preview Lab → · Contrast checker → · Palette generator →

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