#2A1981#2A1981

#2A1981 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.161 H 279.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1981
RGBrgb(42, 25, 129)
HSLhsl(250, 68%, 30%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(67.4%, 80.6%, 0%, 49.4%)
CIE-LABlab(19.11, 39.26, -55.06)
CIE-LCHlch(19.11, 67.63, 305.49°)
OKLaboklab(32.01% 0.0269 -0.159)
OKLCHoklch(32.01% 0.161 279.6)
XYZxyz(5.2637, 2.7721, 21.0223)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1981 #708119
analogous
#193C81 #2A1981 #5E1981
triadic
#2A1981 #812A19 #19812A
tetradic
#2A1981 #81193C #708119 #19815E
square
#2A1981 #81193C #708119 #19815E
split-complementary
#2A1981 #815E19 #3C8119
monochromatic
#09051A #190F4E #2A1981 #3B23B4 #553BD9

Accessibility & contrast

On white

13.51
#2A1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1981
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1981#FFFFFF#000000##FFFFFF
##2A19811.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1981;
/* rgb */ color: rgb(42, 25, 129);
/* oklch */ color: oklch(32.0% 0.161 279.6);
Tailwind
colors: {
  custom: {
    50: '#7159a7',
    500: '#2a1981',
    950: '#000000',
  },
}
SCSS
$custom: #2a1981;
$custom-light: #7159a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1981",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 249.808,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3201,
    "c": 0.16125,
    "h": 279.6
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#2A1981
secondary
#A2B541
accent
#EA3DCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1981

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

Preview Lab → · Contrast checker → · Palette generator →

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