#2A1A9E#2A1A9E

#2A1A9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.195 H 275.3°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1A9E
RGBrgb(42, 26, 158)
HSLhsl(247, 72%, 36%)
HSVhsv(247, 84%, 62%)
CMYKcmyk(73.4%, 83.5%, 0%, 38%)
CIE-LABlab(22.65, 47.81, -67.24)
CIE-LCHlch(22.65, 82.50, 305.41°)
OKLaboklab(35.46% 0.0179 -0.1944)
OKLCHoklch(35.46% 0.195 275.3)
XYZxyz(7.4938, 3.6989, 32.6602)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A9E #8E9E1A
analogous
#1A4C9E #2A1A9E #6C1A9E
triadic
#2A1A9E #9E2A1A #1A9E2A
tetradic
#2A1A9E #9E1A4C #8E9E1A #1A9E6C
square
#2A1A9E #9E1A4C #8E9E1A #1A9E6C
split-complementary
#2A1A9E #9E6C1A #4C9E1A
monochromatic
#0E0935 #1C1169 #2A1A9E #3823D3 #6250E2

Accessibility & contrast

On white

12.07
#2A1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A9E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A9E#FFFFFF#000000##FFFFFF
##2A1A9E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1a9e;
/* rgb */ color: rgb(42, 26, 158);
/* oklch */ color: oklch(35.5% 0.195 275.3);
Tailwind
colors: {
  custom: {
    50: '#785cbc',
    500: '#2a1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a9e;
$custom-light: #785cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a9e",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 247.273,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35455,
    "c": 0.19521,
    "h": 275.3
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#2A1A9E
secondary
#B6C54F
accent
#EE39D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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