#2A1A9F#2A1A9F

#2A1A9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.196 H 275.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1A9F
RGBrgb(42, 26, 159)
HSLhsl(247, 72%, 36%)
HSVhsv(247, 84%, 62%)
CMYKcmyk(73.6%, 83.6%, 0%, 37.6%)
CIE-LABlab(22.77, 48.11, -67.65)
CIE-LCHlch(22.77, 83.02, 305.42°)
OKLaboklab(35.57% 0.0176 -0.1956)
OKLCHoklch(35.57% 0.196 275.1)
XYZxyz(7.5802, 3.7335, 33.1153)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A9F #8F9F1A
analogous
#1A4D9F #2A1A9F #6D1A9F
triadic
#2A1A9F #9F2A1A #1A9F2A
tetradic
#2A1A9F #9F1A4D #8F9F1A #1A9F6D
square
#2A1A9F #9F1A4D #8F9F1A #1A9F6D
split-complementary
#2A1A9F #9F6D1A #4D9F1A
monochromatic
#0E0936 #1C116A #2A1A9F #3823D4 #6251E3

Accessibility & contrast

On white

12.02
#2A1A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A9F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A9F#FFFFFF#000000##FFFFFF
##2A1A9F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1a9f;
/* rgb */ color: rgb(42, 26, 159);
/* oklch */ color: oklch(35.6% 0.196 275.1);
Tailwind
colors: {
  custom: {
    50: '#785cbd',
    500: '#2a1a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a9f;
$custom-light: #785cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a9f",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 247.218,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35573,
    "c": 0.19637,
    "h": 275.1
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#2A1A9F
secondary
#B7C550
accent
#EF39D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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