#2A4E82#2A4E82

#2A4E82 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.4% C 0.096 H 257.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2A4E82
RGBrgb(42, 78, 130)
HSLhsl(215, 51%, 34%)
HSVhsv(215, 68%, 51%)
CMYKcmyk(67.7%, 40%, 0%, 49%)
CIE-LABlab(33.03, 5.07, -33.12)
CIE-LCHlch(33.03, 33.50, 278.71°)
OKLaboklab(42.4% -0.0205 -0.0942)
OKLCHoklch(42.4% 0.096 257.7)
XYZxyz(7.7071, 7.5520, 22.1663)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E82 #825E2A
analogous
#2A7A82 #2A4E82 #322A82
triadic
#2A4E82 #822A4E #4E822A
tetradic
#2A4E82 #822A7A #825E2A #2A8232
square
#2A4E82 #822A7A #825E2A #2A8232
split-complementary
#2A4E82 #82322A #7A822A
monochromatic
#0C1625 #1B3254 #2A4E82 #396AB0 #5C89CA

Accessibility & contrast

On white

8.36
#2A4E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A4E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E82
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E82#FFFFFF#000000##FFFFFF
##2A4E821.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375284
Deuteranopia (green-blind)
#2A4A81
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4e82;
/* rgb */ color: rgb(42, 78, 130);
/* oklch */ color: oklch(42.4% 0.096 257.7);
Tailwind
colors: {
  custom: {
    50: '#6d7fa6',
    500: '#2a4e82',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e82;
$custom-light: #6d7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e82",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 130
  },
  "hsl": {
    "h": 215.455,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.09642,
    "h": 257.7
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#2A4E82
secondary
#B08C58
accent
#A14DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A4E82

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

Preview Lab → · Contrast checker → · Palette generator →

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