#2A1EA6#2A1EA6

#2A1EA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.201 H 274.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2A1EA6
RGBrgb(42, 30, 166)
HSLhsl(245, 69%, 38%)
HSVhsv(245, 82%, 65%)
CMYKcmyk(74.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(24.24, 48.40, -69.48)
CIE-LCHlch(24.24, 84.68, 304.86°)
OKLaboklab(36.83% 0.0143 -0.2009)
OKLCHoklch(36.83% 0.201 274.1)
XYZxyz(8.2998, 4.1731, 36.4371)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EA6 #9AA61E
analogous
#1E56A6 #2A1EA6 #6E1EA6
triadic
#2A1EA6 #A62A1E #1EA62A
tetradic
#2A1EA6 #A61E56 #9AA61E #1EA66E
square
#2A1EA6 #A61E56 #9AA61E #1EA66E
split-complementary
#2A1EA6 #A66E1E #56A61E
monochromatic
#100B3E #1D1572 #2A1EA6 #3829D8 #685DE2

Accessibility & contrast

On white

11.45
#2A1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1EA6
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EA6#FFFFFF#000000##FFFFFF
##2A1EA61.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1ea6;
/* rgb */ color: rgb(42, 30, 166);
/* oklch */ color: oklch(36.8% 0.201 274.1);
Tailwind
colors: {
  custom: {
    50: '#795ec2',
    500: '#2a1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ea6;
$custom-light: #795ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ea6",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 245.294,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.20146,
    "h": 274.1
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#2A1EA6
secondary
#BCC65A
accent
#EC3CDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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