#2A1EA8#2A1EA8

#2A1EA8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.204 H 273.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2A1EA8
RGBrgb(42, 30, 168)
HSLhsl(245, 70%, 39%)
HSVhsv(245, 82%, 66%)
CMYKcmyk(75%, 82.1%, 0%, 34.1%)
CIE-LABlab(24.47, 49.01, -70.30)
CIE-LCHlch(24.47, 85.70, 304.88°)
OKLaboklab(37.06% 0.0138 -0.2033)
OKLCHoklch(37.06% 0.204 273.9)
XYZxyz(8.4847, 4.2471, 37.4108)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EA8 #9CA81E
analogous
#1E57A8 #2A1EA8 #6F1EA8
triadic
#2A1EA8 #A82A1E #1EA82A
tetradic
#2A1EA8 #A81E57 #9CA81E #1EA86F
square
#2A1EA8 #A81E57 #9CA81E #1EA86F
split-complementary
#2A1EA8 #A86F1E #57A81E
monochromatic
#100B40 #1D1574 #2A1EA8 #392AD9 #6A5EE2

Accessibility & contrast

On white

11.35
#2A1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EA8
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EA8#FFFFFF#000000##FFFFFF
##2A1EA81.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1ea8;
/* rgb */ color: rgb(42, 30, 168);
/* oklch */ color: oklch(37.1% 0.204 273.9);
Tailwind
colors: {
  custom: {
    50: '#7a5ec3',
    500: '#2a1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ea8;
$custom-light: #7a5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ea8",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 245.217,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3706,
    "c": 0.2038,
    "h": 273.9
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#2A1EA8
secondary
#BDC75B
accent
#ED3BDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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