#2A1E78#2A1E78

#2A1E78 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.145 H 280.3°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2A1E78
RGBrgb(42, 30, 120)
HSLhsl(248, 60%, 29%)
HSVhsv(248, 75%, 47%)
CMYKcmyk(65%, 75%, 0%, 52.9%)
CIE-LABlab(19.13, 33.52, -49.30)
CIE-LCHlch(19.13, 59.62, 304.21°)
OKLaboklab(31.73% 0.0259 -0.1422)
OKLCHoklch(31.73% 0.145 280.3)
XYZxyz(4.8082, 2.7765, 18.0482)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E78 #6C781E
analogous
#1E3F78 #2A1E78 #571E78
triadic
#2A1E78 #782A1E #1E782A
tetradic
#2A1E78 #781E3F #6C781E #1E7857
square
#2A1E78 #781E3F #6C781E #1E7857
split-complementary
#2A1E78 #78571E #3F781E
monochromatic
#090618 #191247 #2A1E78 #3B2AA9 #5441CF

Accessibility & contrast

On white

13.50
#2A1E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E78
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E78#FFFFFF#000000##FFFFFF
##2A1E781.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1e78;
/* rgb */ color: rgb(42, 30, 120);
/* oklch */ color: oklch(31.7% 0.145 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ba0',
    500: '#2a1e78',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e78;
$custom-light: #6e5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e78",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 248,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31734,
    "c": 0.14455,
    "h": 280.3
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#2A1E78
secondary
#9EAC46
accent
#E345CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A1E78

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

Preview Lab → · Contrast checker → · Palette generator →

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