#2A1D78#2A1D78

#2A1D78 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.146 H 280.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1D78
RGBrgb(42, 29, 120)
HSLhsl(249, 61%, 29%)
HSVhsv(249, 76%, 47%)
CMYKcmyk(65%, 75.8%, 0%, 52.9%)
CIE-LABlab(18.91, 34.11, -49.65)
CIE-LCHlch(18.91, 60.24, 304.49°)
OKLaboklab(31.58% 0.0266 -0.1432)
OKLCHoklch(31.58% 0.146 280.5)
XYZxyz(4.7833, 2.7267, 18.0399)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D78 #6B781D
analogous
#1D3E78 #2A1D78 #581D78
triadic
#2A1D78 #782A1D #1D782A
tetradic
#2A1D78 #781D3E #6B781D #1D7858
square
#2A1D78 #781D3E #6B781D #1D7858
split-complementary
#2A1D78 #78581D #3E781D
monochromatic
#090619 #191147 #2A1D78 #3B29A9 #543FD1

Accessibility & contrast

On white

13.59
#2A1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D78
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D78#FFFFFF#000000##FFFFFF
##2A1D781.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1d78;
/* rgb */ color: rgb(42, 29, 120);
/* oklch */ color: oklch(31.6% 0.146 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f5ba0',
    500: '#2a1d78',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d78;
$custom-light: #6f5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d78",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 248.571,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.14568,
    "h": 280.5
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#2A1D78
secondary
#9DAC45
accent
#E444CD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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