#2A1A7E#2A1A7E

#2A1A7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.157 H 280.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2A1A7E
RGBrgb(42, 26, 126)
HSLhsl(250, 66%, 30%)
HSVhsv(250, 79%, 49%)
CMYKcmyk(66.7%, 79.4%, 0%, 50.6%)
CIE-LABlab(18.96, 37.77, -53.41)
CIE-LCHlch(18.96, 65.41, 305.27°)
OKLaboklab(31.81% 0.0271 -0.1542)
OKLCHoklch(31.81% 0.157 280)
XYZxyz(5.0889, 2.7370, 19.9947)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A7E #6E7E1A
analogous
#1A3C7E #2A1A7E #5C1A7E
triadic
#2A1A7E #7E2A1A #1A7E2A
tetradic
#2A1A7E #7E1A3C #6E7E1A #1A7E5C
square
#2A1A7E #7E1A3C #6E7E1A #1A7E5C
split-complementary
#2A1A7E #7E5C1A #3C7E1A
monochromatic
#080519 #19104B #2A1A7E #3B24B1 #553CD7

Accessibility & contrast

On white

13.57
#2A1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A7E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A7E#FFFFFF#000000##FFFFFF
##2A1A7E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1a7e;
/* rgb */ color: rgb(42, 26, 126);
/* oklch */ color: oklch(31.8% 0.157 280.0);
Tailwind
colors: {
  custom: {
    50: '#7059a4',
    500: '#2a1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a7e;
$custom-light: #7059a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a7e",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 249.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31807,
    "c": 0.15654,
    "h": 280
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#2A1A7E
secondary
#A0B242
accent
#E93FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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