#2A1EA5#2A1EA5

#2A1EA5 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.7% C 0.200 H 274.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2A1EA5
RGBrgb(42, 30, 165)
HSLhsl(245, 69%, 38%)
HSVhsv(245, 82%, 65%)
CMYKcmyk(74.5%, 81.8%, 0%, 35.3%)
CIE-LABlab(24.12, 48.09, -69.07)
CIE-LCHlch(24.12, 84.16, 304.85°)
OKLaboklab(36.71% 0.0146 -0.1998)
OKLCHoklch(36.71% 0.2 274.2)
XYZxyz(8.2084, 4.1366, 35.9559)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EA5 #99A51E
analogous
#1E56A5 #2A1EA5 #6D1EA5
triadic
#2A1EA5 #A52A1E #1EA52A
tetradic
#2A1EA5 #A51E56 #99A51E #1EA56D
square
#2A1EA5 #A51E56 #99A51E #1EA56D
split-complementary
#2A1EA5 #A56D1E #56A51E
monochromatic
#100B3D #1D1571 #2A1EA5 #3828D8 #685CE1

Accessibility & contrast

On white

11.49
#2A1EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A1EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EA5
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EA5#FFFFFF#000000##FFFFFF
##2A1EA51.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a1ea5;
/* rgb */ color: rgb(42, 30, 165);
/* oklch */ color: oklch(36.7% 0.200 274.2);
Tailwind
colors: {
  custom: {
    50: '#795ec1',
    500: '#2a1ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ea5;
$custom-light: #795ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ea5",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 165
  },
  "hsl": {
    "h": 245.333,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36712,
    "c": 0.20029,
    "h": 274.2
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#2A1EA5
secondary
#BCC559
accent
#EC3CDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2A1EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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