#2A1E80#2A1E80

#2A1E80 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.155 H 278.9°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2A1E80
RGBrgb(42, 30, 128)
HSLhsl(247, 62%, 31%)
HSVhsv(247, 77%, 50%)
CMYKcmyk(67.2%, 76.6%, 0%, 49.8%)
CIE-LABlab(19.96, 36.20, -53.03)
CIE-LCHlch(19.96, 64.20, 304.32°)
OKLaboklab(32.58% 0.024 -0.1531)
OKLCHoklch(32.58% 0.155 278.9)
XYZxyz(5.3142, 2.9789, 20.7128)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E80 #74801E
analogous
#1E4380 #2A1E80 #5B1E80
triadic
#2A1E80 #802A1E #1E802A
tetradic
#2A1E80 #801E43 #74801E #1E805B
square
#2A1E80 #801E43 #74801E #1E805B
split-complementary
#2A1E80 #805B1E #43801E
monochromatic
#09071D #1A124E #2A1E80 #3A2AB2 #5645D3

Accessibility & contrast

On white

13.16
#2A1E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E80
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E80#FFFFFF#000000##FFFFFF
##2A1E801.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1e80;
/* rgb */ color: rgb(42, 30, 128);
/* oklch */ color: oklch(32.6% 0.155 278.9);
Tailwind
colors: {
  custom: {
    50: '#705ca6',
    500: '#2a1e80',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e80;
$custom-light: #705ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e80",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 247.347,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32576,
    "c": 0.15497,
    "h": 278.9
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#2A1E80
secondary
#A6B347
accent
#E543D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1E80

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

Preview Lab → · Contrast checker → · Palette generator →

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