#2A2580#2A2580

#2A2580 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.147 H 277.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2A2580
RGBrgb(42, 37, 128)
HSLhsl(243, 55%, 32%)
HSVhsv(243, 71%, 50%)
CMYKcmyk(67.2%, 71.1%, 0%, 49.8%)
CIE-LABlab(21.48, 31.97, -50.52)
CIE-LCHlch(21.48, 59.79, 302.33°)
OKLaboklab(33.66% 0.019 -0.1458)
OKLCHoklch(33.66% 0.147 277.4)
XYZxyz(5.5114, 3.3734, 20.7786)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2580 #7B8025
analogous
#254D80 #2A2580 #582580
triadic
#2A2580 #802A25 #25802A
tetradic
#2A2580 #80254D #7B8025 #258058
square
#2A2580 #80254D #7B8025 #258058
split-complementary
#2A2580 #805825 #4D8025
monochromatic
#0B0A21 #1A1751 #2A2580 #3A33AF #5952CD

Accessibility & contrast

On white

12.54
#2A2580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A2580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2580
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2580#FFFFFF#000000##FFFFFF
##2A25801.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2580;
/* rgb */ color: rgb(42, 37, 128);
/* oklch */ color: oklch(33.7% 0.147 277.4);
Tailwind
colors: {
  custom: {
    50: '#7060a6',
    500: '#2a2580',
    950: '#000000',
  },
}
SCSS
$custom: #2a2580;
$custom-light: #7060a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2580",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 128
  },
  "hsl": {
    "h": 243.297,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33662,
    "c": 0.14704,
    "h": 277.4
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#2A2580
secondary
#ACB150
accent
#DE49D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2580

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

Preview Lab → · Contrast checker → · Palette generator →

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