#2A4D8D#2A4D8D

#2A4D8D is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.114 H 261.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2A4D8D
RGBrgb(42, 77, 141)
HSLhsl(219, 54%, 36%)
HSVhsv(219, 70%, 55%)
CMYKcmyk(70.2%, 45.4%, 0%, 44.7%)
CIE-LABlab(33.40, 9.93, -39.29)
CIE-LCHlch(33.40, 40.53, 284.18°)
OKLaboklab(42.9% -0.0171 -0.1123)
OKLCHoklch(42.9% 0.114 261.4)
XYZxyz(8.4147, 7.7222, 26.2412)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D8D #8D6A2A
analogous
#2A7E8D #2A4D8D #382A8D
triadic
#2A4D8D #8D2A4D #4D8D2A
tetradic
#2A4D8D #8D2A7E #8D6A2A #2A8D38
square
#2A4D8D #8D2A7E #8D6A2A #2A8D38
split-complementary
#2A4D8D #8D382A #7E8D2A
monochromatic
#0E192F #1C335E #2A4D8D #3867BC #6188D0

Accessibility & contrast

On white

8.25
#2A4D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A4D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D8D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D8D#FFFFFF#000000##FFFFFF
##2A4D8D1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538F
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4d8d;
/* rgb */ color: rgb(42, 77, 141);
/* oklch */ color: oklch(42.9% 0.114 261.4);
Tailwind
colors: {
  custom: {
    50: '#707eaf',
    500: '#2a4d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d8d;
$custom-light: #707eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d8d",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 218.788,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42903,
    "c": 0.11363,
    "h": 261.4
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#2A4D8D
secondary
#B6965D
accent
#A94ADD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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