#2A1984#2A1984

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

Color values

HEX#2A1984
RGBrgb(42, 25, 132)
HSLhsl(250, 68%, 31%)
HSVhsv(250, 81%, 52%)
CMYKcmyk(68.2%, 81.1%, 0%, 48.2%)
CIE-LABlab(19.45, 40.21, -56.40)
CIE-LCHlch(19.45, 69.27, 305.49°)
OKLaboklab(32.35% 0.026 -0.1629)
OKLCHoklch(32.35% 0.165 279.1)
XYZxyz(5.4660, 2.8530, 22.0880)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1984 #738419
analogous
#193D84 #2A1984 #5F1984
triadic
#2A1984 #842A19 #19842A
tetradic
#2A1984 #84193D #738419 #19845F
square
#2A1984 #84193D #738419 #19845F
split-complementary
#2A1984 #845F19 #3D8419
monochromatic
#09061D #1A0F51 #2A1984 #3A23B7 #563DDA

Accessibility & contrast

On white

13.37
#2A1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1984
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1984#FFFFFF#000000##FFFFFF
##2A19841.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1984;
/* rgb */ color: rgb(42, 25, 132);
/* oklch */ color: oklch(32.3% 0.165 279.1);
Tailwind
colors: {
  custom: {
    50: '#7259a9',
    500: '#2a1984',
    950: '#000000',
  },
}
SCSS
$custom: #2a1984;
$custom-light: #7259a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1984",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 249.533,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32346,
    "c": 0.16494,
    "h": 279.1
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#2A1984
secondary
#A5B841
accent
#EB3DCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1984

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

Preview Lab → · Contrast checker → · Palette generator →

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