#2A4D84#2A4D84

#2A4D84 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.101 H 259.1°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2A4D84
RGBrgb(42, 77, 132)
HSLhsl(217, 52%, 34%)
HSVhsv(217, 68%, 52%)
CMYKcmyk(68.2%, 41.7%, 0%, 48.2%)
CIE-LABlab(32.84, 6.49, -34.65)
CIE-LCHlch(32.84, 35.25, 280.61°)
OKLaboklab(42.3% -0.019 -0.0987)
OKLCHoklch(42.3% 0.101 259.1)
XYZxyz(7.7721, 7.4652, 22.8567)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D84 #84612A
analogous
#2A7A84 #2A4D84 #342A84
triadic
#2A4D84 #842A4D #4D842A
tetradic
#2A4D84 #842A7A #84612A #2A8434
square
#2A4D84 #842A7A #84612A #2A8434
split-complementary
#2A4D84 #84342A #7A842A
monochromatic
#0C1727 #1B3256 #2A4D84 #3968B2 #5D88CB

Accessibility & contrast

On white

8.42
#2A4D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2A4D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D84
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D84#FFFFFF#000000##FFFFFF
##2A4D841.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345286
Deuteranopia (green-blind)
#264983
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4d84;
/* rgb */ color: rgb(42, 77, 132);
/* oklch */ color: oklch(42.3% 0.101 259.1);
Tailwind
colors: {
  custom: {
    50: '#6e7ea8',
    500: '#2a4d84',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d84;
$custom-light: #6e7ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d84",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 132
  },
  "hsl": {
    "h": 216.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42295,
    "c": 0.10052,
    "h": 259.1
  },
  "luminance": 0.07466
}

Semantic roles & 50–950 ramp

primary
#2A4D84
secondary
#B18F59
accent
#A44DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4D84

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

Preview Lab → · Contrast checker → · Palette generator →

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