#2A1A90#2A1A90

#2A1A90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.179 H 277.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2A1A90
RGBrgb(42, 26, 144)
HSLhsl(248, 69%, 33%)
HSVhsv(248, 82%, 56%)
CMYKcmyk(70.8%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.00, 43.49, -61.35)
CIE-LCHlch(21.00, 75.20, 305.33°)
OKLaboklab(33.83% 0.022 -0.1773)
OKLCHoklch(33.83% 0.179 277.1)
XYZxyz(6.3566, 3.2441, 26.6713)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A90 #80901A
analogous
#1A4590 #2A1A90 #651A90
triadic
#2A1A90 #902A1A #1A902A
tetradic
#2A1A90 #901A45 #80901A #1A9065
square
#2A1A90 #901A45 #80901A #1A9065
split-complementary
#2A1A90 #90651A #45901A
monochromatic
#0C0728 #1B115C #2A1A90 #3923C4 #5B47DE

Accessibility & contrast

On white

12.73
#2A1A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A1A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A90
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A90#FFFFFF#000000##FFFFFF
##2A1A901.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1a90;
/* rgb */ color: rgb(42, 26, 144);
/* oklch */ color: oklch(33.8% 0.179 277.1);
Tailwind
colors: {
  custom: {
    50: '#745ab2',
    500: '#2a1a90',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a90;
$custom-light: #745ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a90",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 248.136,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3383,
    "c": 0.17865,
    "h": 277.1
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1A90

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

Preview Lab → · Contrast checker → · Palette generator →

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