#2A2487#2A2487

#2A2487 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.158 H 276.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2A2487
RGBrgb(42, 36, 135)
HSLhsl(244, 58%, 34%)
HSVhsv(244, 73%, 53%)
CMYKcmyk(68.9%, 73.3%, 0%, 47.1%)
CIE-LABlab(21.95, 35.02, -54.15)
CIE-LCHlch(21.95, 64.49, 302.89°)
OKLaboklab(34.21% 0.0185 -0.1564)
OKLCHoklch(34.21% 0.158 276.8)
XYZxyz(5.9575, 3.5027, 23.2791)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2487 #818724
analogous
#244F87 #2A2487 #5B2487
triadic
#2A2487 #872A24 #24872A
tetradic
#2A2487 #87244F #818724 #24875B
square
#2A2487 #87244F #818724 #24875B
split-complementary
#2A2487 #875B24 #4F8724
monochromatic
#0C0A26 #1B1757 #2A2487 #3931B7 #5C54D1

Accessibility & contrast

On white

12.35
#2A2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2487
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2487#FFFFFF#000000##FFFFFF
##2A24871.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2487;
/* rgb */ color: rgb(42, 36, 135);
/* oklch */ color: oklch(34.2% 0.158 276.8);
Tailwind
colors: {
  custom: {
    50: '#7160ab',
    500: '#2a2487',
    950: '#000000',
  },
}
SCSS
$custom: #2a2487;
$custom-light: #7160ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2487",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 243.636,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34213,
    "c": 0.15751,
    "h": 276.8
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#2A2487
secondary
#AFB551
accent
#E147D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2487

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

Preview Lab → · Contrast checker → · Palette generator →

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