#2A4D8E#2A4D8E

#2A4D8E is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.115 H 261.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2A4D8E
RGBrgb(42, 77, 142)
HSLhsl(219, 54%, 36%)
HSVhsv(219, 70%, 56%)
CMYKcmyk(70.4%, 45.8%, 0%, 44.3%)
CIE-LABlab(33.46, 10.31, -39.80)
CIE-LCHlch(33.46, 41.12, 284.52°)
OKLaboklab(42.97% -0.0169 -0.1138)
OKLCHoklch(42.97% 0.115 261.6)
XYZxyz(8.4895, 7.7521, 26.6348)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D8E #8E6B2A
analogous
#2A7F8E #2A4D8E #392A8E
triadic
#2A4D8E #8E2A4D #4D8E2A
tetradic
#2A4D8E #8E2A7F #8E6B2A #2A8E39
square
#2A4D8E #8E2A7F #8E6B2A #2A8E39
split-complementary
#2A4D8E #8E392A #7F8E2A
monochromatic
#0E1A30 #1C335F #2A4D8E #3867BD #6289D1

Accessibility & contrast

On white

8.23
#2A4D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A4D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D8E
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D8E#FFFFFF#000000##FFFFFF
##2A4D8E1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4d8e;
/* rgb */ color: rgb(42, 77, 142);
/* oklch */ color: oklch(43.0% 0.115 261.6);
Tailwind
colors: {
  custom: {
    50: '#707eaf',
    500: '#2a4d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d8e;
$custom-light: #707eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d8e",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 219,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.11509,
    "h": 261.6
  },
  "luminance": 0.07753
}

Semantic roles & 50–950 ramp

primary
#2A4D8E
secondary
#B6975D
accent
#AA4ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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