#2A1A95#2A1A95

#2A1A95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.185 H 276.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2A1A95
RGBrgb(42, 26, 149)
HSLhsl(248, 70%, 34%)
HSVhsv(248, 83%, 58%)
CMYKcmyk(71.8%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.58, 45.04, -63.48)
CIE-LCHlch(21.58, 77.84, 305.36°)
OKLaboklab(34.41% 0.0205 -0.1835)
OKLCHoklch(34.41% 0.185 276.4)
XYZxyz(6.7473, 3.4003, 28.7287)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A95 #85951A
analogous
#1A4895 #2A1A95 #681A95
triadic
#2A1A95 #952A1A #1A952A
tetradic
#2A1A95 #951A48 #85951A #1A9568
square
#2A1A95 #951A48 #85951A #1A9568
split-complementary
#2A1A95 #95681A #48951A
monochromatic
#0D082D #1B1161 #2A1A95 #3923C9 #5D4ADF

Accessibility & contrast

On white

12.50
#2A1A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A1A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A95
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A95#FFFFFF#000000##FFFFFF
##2A1A951.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1a95;
/* rgb */ color: rgb(42, 26, 149);
/* oklch */ color: oklch(34.4% 0.185 276.4);
Tailwind
colors: {
  custom: {
    50: '#755bb5',
    500: '#2a1a95',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a95;
$custom-light: #755bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a95",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 247.805,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.18462,
    "h": 276.4
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#2A1A95
secondary
#B2C14A
accent
#ED3BD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1A95

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

Preview Lab → · Contrast checker → · Palette generator →

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