#2A1D79#2A1D79

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

Color values

HEX#2A1D79
RGBrgb(42, 29, 121)
HSLhsl(248, 61%, 29%)
HSVhsv(248, 76%, 47%)
CMYKcmyk(65.3%, 76%, 0%, 52.5%)
CIE-LABlab(19.02, 34.44, -50.12)
CIE-LCHlch(19.02, 60.81, 304.50°)
OKLaboklab(31.69% 0.0264 -0.1446)
OKLCHoklch(31.69% 0.147 280.3)
XYZxyz(4.8443, 2.7511, 18.3612)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D79 #6C791D
analogous
#1D3E79 #2A1D79 #581D79
triadic
#2A1D79 #792A1D #1D792A
tetradic
#2A1D79 #791D3E #6C791D #1D7958
square
#2A1D79 #791D3E #6C791D #1D7958
split-complementary
#2A1D79 #79581D #3E791D
monochromatic
#090619 #191148 #2A1D79 #3B29AA #543FD1

Accessibility & contrast

On white

13.55
#2A1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D79
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D79#FFFFFF#000000##FFFFFF
##2A1D791.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1d79;
/* rgb */ color: rgb(42, 29, 121);
/* oklch */ color: oklch(31.7% 0.147 280.3);
Tailwind
colors: {
  custom: {
    50: '#6f5ba1',
    500: '#2a1d79',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d79;
$custom-light: #6f5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d79",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 248.478,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31689,
    "c": 0.14699,
    "h": 280.3
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#2A1D79
secondary
#9EAD45
accent
#E443CE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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