#2A2582#2A2582

#2A2582 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.150 H 277.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2A2582
RGBrgb(42, 37, 130)
HSLhsl(243, 56%, 33%)
HSVhsv(243, 72%, 51%)
CMYKcmyk(67.7%, 71.5%, 0%, 49%)
CIE-LABlab(21.68, 32.67, -51.46)
CIE-LCHlch(21.68, 60.96, 302.41°)
OKLaboklab(33.86% 0.0187 -0.1486)
OKLCHoklch(33.86% 0.15 277.2)
XYZxyz(5.6444, 3.4266, 21.4787)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2582 #7D8225
analogous
#254E82 #2A2582 #592582
triadic
#2A2582 #822A25 #25822A
tetradic
#2A2582 #82254E #7D8225 #258259
square
#2A2582 #82254E #7D8225 #258259
split-complementary
#2A2582 #825925 #4E8225
monochromatic
#0B0A23 #1B1752 #2A2582 #3933B2 #5A53CE

Accessibility & contrast

On white

12.46
#2A2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2582
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2582#FFFFFF#000000##FFFFFF
##2A25821.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2582;
/* rgb */ color: rgb(42, 37, 130);
/* oklch */ color: oklch(33.9% 0.150 277.2);
Tailwind
colors: {
  custom: {
    50: '#7060a7',
    500: '#2a2582',
    950: '#000000',
  },
}
SCSS
$custom: #2a2582;
$custom-light: #7060a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2582",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 243.226,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33863,
    "c": 0.14973,
    "h": 277.2
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#2A2582
secondary
#ADB250
accent
#DF49D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2A2582

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

Preview Lab → · Contrast checker → · Palette generator →

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