#2A1A7D#2A1A7D

#2A1A7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.155 H 280.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2A1A7D
RGBrgb(42, 26, 125)
HSLhsl(250, 66%, 30%)
HSVhsv(250, 79%, 49%)
CMYKcmyk(66.4%, 79.2%, 0%, 51%)
CIE-LABlab(18.85, 37.45, -52.95)
CIE-LCHlch(18.85, 64.85, 305.27°)
OKLaboklab(31.7% 0.0274 -0.1528)
OKLCHoklch(31.7% 0.155 280.2)
XYZxyz(5.0247, 2.7113, 19.6566)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A7D #6D7D1A
analogous
#1A3C7D #2A1A7D #5C1A7D
triadic
#2A1A7D #7D2A1A #1A7D2A
tetradic
#2A1A7D #7D1A3C #6D7D1A #1A7D5C
square
#2A1A7D #7D1A3C #6D7D1A #1A7D5C
split-complementary
#2A1A7D #7D5C1A #3C7D1A
monochromatic
#090519 #190F4A #2A1A7D #3B25B0 #543BD6

Accessibility & contrast

On white

13.62
#2A1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A7D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A7D#FFFFFF#000000##FFFFFF
##2A1A7D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1a7d;
/* rgb */ color: rgb(42, 26, 125);
/* oklch */ color: oklch(31.7% 0.155 280.2);
Tailwind
colors: {
  custom: {
    50: '#7059a4',
    500: '#2a1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a7d;
$custom-light: #7059a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a7d",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 249.697,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.15528,
    "h": 280.2
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#2A1A7D
secondary
#9FB142
accent
#E93FCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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