#2A1A8F#2A1A8F

#2A1A8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.177 H 277.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2A1A8F
RGBrgb(42, 26, 143)
HSLhsl(248, 69%, 33%)
HSVhsv(248, 82%, 56%)
CMYKcmyk(70.6%, 81.8%, 0%, 43.9%)
CIE-LABlab(20.88, 43.18, -60.92)
CIE-LCHlch(20.88, 74.67, 305.33°)
OKLaboklab(33.72% 0.0223 -0.176)
OKLCHoklch(33.72% 0.177 277.2)
XYZxyz(6.2806, 3.2136, 26.2706)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A8F #7F8F1A
analogous
#1A448F #2A1A8F #641A8F
triadic
#2A1A8F #8F2A1A #1A8F2A
tetradic
#2A1A8F #8F1A44 #7F8F1A #1A8F64
square
#2A1A8F #8F1A44 #7F8F1A #1A8F64
split-complementary
#2A1A8F #8F641A #448F1A
monochromatic
#0C0727 #1B115B #2A1A8F #3923C3 #5B46DD

Accessibility & contrast

On white

12.78
#2A1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A1A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A8F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A8F#FFFFFF#000000##FFFFFF
##2A1A8F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1a8f;
/* rgb */ color: rgb(42, 26, 143);
/* oklch */ color: oklch(33.7% 0.177 277.2);
Tailwind
colors: {
  custom: {
    50: '#745ab1',
    500: '#2a1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a8f;
$custom-light: #745ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a8f",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 248.205,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.17744,
    "h": 277.2
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#2A1A8F
secondary
#AEBF46
accent
#EC3CD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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