#2A1C82#2A1C82

#2A1C82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 278.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#2A1C82
RGBrgb(42, 28, 130)
HSLhsl(248, 65%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(67.7%, 78.5%, 0%, 49%)
CIE-LABlab(19.78, 37.98, -54.59)
CIE-LCHlch(19.78, 66.50, 304.83°)
OKLaboklab(32.51% 0.0248 -0.1576)
OKLCHoklch(32.51% 0.16 278.9)
XYZxyz(5.3981, 2.9340, 21.3966)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C82 #74821C
analogous
#1C4182 #2A1C82 #5D1C82
triadic
#2A1C82 #822A1C #1C822A
tetradic
#2A1C82 #821C41 #74821C #1C825D
square
#2A1C82 #821C41 #74821C #1C825D
split-complementary
#2A1C82 #825D1C #41821C
monochromatic
#09061D #1A1150 #2A1C82 #3A27B4 #5642D6

Accessibility & contrast

On white

13.23
#2A1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C82
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C82#FFFFFF#000000##FFFFFF
##2A1C821.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1c82;
/* rgb */ color: rgb(42, 28, 130);
/* oklch */ color: oklch(32.5% 0.160 278.9);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2a1c82',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c82;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c82",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 248.235,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32513,
    "c": 0.15958,
    "h": 278.9
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#2A1C82
secondary
#A6B544
accent
#E840D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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