#2A1D80#2A1D80

#2A1D80 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.156 H 279.1°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2A1D80
RGBrgb(42, 29, 128)
HSLhsl(248, 63%, 31%)
HSVhsv(248, 77%, 50%)
CMYKcmyk(67.2%, 77.3%, 0%, 49.8%)
CIE-LABlab(19.76, 36.76, -53.36)
CIE-LCHlch(19.76, 64.80, 304.57°)
OKLaboklab(32.43% 0.0247 -0.154)
OKLCHoklch(32.43% 0.156 279.1)
XYZxyz(5.2892, 2.9291, 20.7045)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D80 #73801D
analogous
#1D4180 #2A1D80 #5B1D80
triadic
#2A1D80 #802A1D #1D802A
tetradic
#2A1D80 #801D41 #73801D #1D805B
square
#2A1D80 #801D41 #73801D #1D805B
split-complementary
#2A1D80 #805B1D #41801D
monochromatic
#09061C #1A124E #2A1D80 #3A28B2 #5643D4

Accessibility & contrast

On white

13.24
#2A1D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D80
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D80#FFFFFF#000000##FFFFFF
##2A1D801.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1d80;
/* rgb */ color: rgb(42, 29, 128);
/* oklch */ color: oklch(32.4% 0.156 279.1);
Tailwind
colors: {
  custom: {
    50: '#705ba6',
    500: '#2a1d80',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d80;
$custom-light: #705ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d80",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 247.879,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32434,
    "c": 0.15602,
    "h": 279.1
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#2A1D80
secondary
#A5B345
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2A1D80

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

Preview Lab → · Contrast checker → · Palette generator →

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