#2A1D77#2A1D77

#2A1D77 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.144 H 280.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2A1D77
RGBrgb(42, 29, 119)
HSLhsl(249, 61%, 29%)
HSVhsv(249, 76%, 47%)
CMYKcmyk(64.7%, 75.6%, 0%, 53.3%)
CIE-LABlab(18.81, 33.77, -49.18)
CIE-LCHlch(18.81, 59.66, 304.48°)
OKLaboklab(31.48% 0.0268 -0.1418)
OKLCHoklch(31.48% 0.144 280.7)
XYZxyz(4.7229, 2.7025, 17.7219)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D77 #6A771D
analogous
#1D3D77 #2A1D77 #571D77
triadic
#2A1D77 #772A1D #1D772A
tetradic
#2A1D77 #771D3D #6A771D #1D7757
square
#2A1D77 #771D3D #6A771D #1D7757
split-complementary
#2A1D77 #77571D #3D771D
monochromatic
#090619 #191146 #2A1D77 #3B29A8 #533ED0

Accessibility & contrast

On white

13.63
#2A1D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A1D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D77
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D77#FFFFFF#000000##FFFFFF
##2A1D771.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1d77;
/* rgb */ color: rgb(42, 29, 119);
/* oklch */ color: oklch(31.5% 0.144 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e5b9f',
    500: '#2a1d77',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d77;
$custom-light: #6e5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d77",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 248.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.14437,
    "h": 280.7
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D77

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

Preview Lab → · Contrast checker → · Palette generator →

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