#2A4D82#2A4D82

#2A4D82 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.098 H 258.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2A4D82
RGBrgb(42, 77, 130)
HSLhsl(216, 51%, 34%)
HSVhsv(216, 68%, 51%)
CMYKcmyk(67.7%, 40.8%, 0%, 49%)
CIE-LABlab(32.72, 5.73, -33.60)
CIE-LCHlch(32.72, 34.09, 279.68°)
OKLaboklab(42.16% -0.0195 -0.0956)
OKLCHoklch(42.16% 0.098 258.5)
XYZxyz(7.6365, 7.4110, 22.1428)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D82 #825F2A
analogous
#2A7982 #2A4D82 #332A82
triadic
#2A4D82 #822A4D #4D822A
tetradic
#2A4D82 #822A79 #825F2A #2A8233
square
#2A4D82 #822A79 #825F2A #2A8233
split-complementary
#2A4D82 #82332A #79822A
monochromatic
#0C1625 #1B3254 #2A4D82 #3968B0 #5C88CA

Accessibility & contrast

On white

8.46
#2A4D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2A4D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D82
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D82#FFFFFF#000000##FFFFFF
##2A4D821.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355184
Deuteranopia (green-blind)
#284981
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4d82;
/* rgb */ color: rgb(42, 77, 130);
/* oklch */ color: oklch(42.2% 0.098 258.5);
Tailwind
colors: {
  custom: {
    50: '#6d7ea6',
    500: '#2a4d82',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d82;
$custom-light: #6d7ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d82",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 130
  },
  "hsl": {
    "h": 216.136,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42164,
    "c": 0.0976,
    "h": 258.5
  },
  "luminance": 0.07412
}

Semantic roles & 50–950 ramp

primary
#2A4D82
secondary
#B08D58
accent
#A24DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4D82

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

Preview Lab → · Contrast checker → · Palette generator →

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