#2A1EA0#2A1EA0

#2A1EA0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.194 H 274.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1EA0
RGBrgb(42, 30, 160)
HSLhsl(246, 68%, 37%)
HSVhsv(246, 81%, 63%)
CMYKcmyk(73.8%, 81.3%, 0%, 37.3%)
CIE-LABlab(23.53, 46.53, -67.00)
CIE-LCHlch(23.53, 81.57, 304.78°)
OKLaboklab(36.14% 0.0159 -0.1938)
OKLCHoklch(36.14% 0.194 274.7)
XYZxyz(7.7622, 3.9581, 33.6058)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EA0 #94A01E
analogous
#1E53A0 #2A1EA0 #6B1EA0
triadic
#2A1EA0 #A02A1E #1EA02A
tetradic
#2A1EA0 #A01E53 #94A01E #1EA06B
square
#2A1EA0 #A01E53 #94A01E #1EA06B
split-complementary
#2A1EA0 #A06B1E #53A01E
monochromatic
#0F0B39 #1C146C #2A1EA0 #3828D4 #6559E0

Accessibility & contrast

On white

11.72
#2A1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EA0
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EA0#FFFFFF#000000##FFFFFF
##2A1EA01.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1ea0;
/* rgb */ color: rgb(42, 30, 160);
/* oklch */ color: oklch(36.1% 0.194 274.7);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2a1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ea0;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ea0",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 245.538,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36135,
    "c": 0.19441,
    "h": 274.7
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#2A1EA0
secondary
#B9C456
accent
#EB3DDB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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