#2A4E8D#2A4E8D

#2A4E8D is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.112 H 260.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2A4E8D
RGBrgb(42, 78, 141)
HSLhsl(218, 54%, 36%)
HSVhsv(218, 70%, 55%)
CMYKcmyk(70.2%, 44.7%, 0%, 44.7%)
CIE-LABlab(33.70, 9.26, -38.82)
CIE-LCHlch(33.70, 39.90, 283.41°)
OKLaboklab(43.13% -0.0181 -0.1109)
OKLCHoklch(43.13% 0.112 260.7)
XYZxyz(8.4852, 7.8632, 26.2647)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E8D #8D692A
analogous
#2A7F8D #2A4E8D #372A8D
triadic
#2A4E8D #8D2A4E #4E8D2A
tetradic
#2A4E8D #8D2A7F #8D692A #2A8D37
square
#2A4E8D #8D2A7F #8D692A #2A8D37
split-complementary
#2A4E8D #8D372A #7F8D2A
monochromatic
#0E1A2F #1C345E #2A4E8D #3868BC #618AD0

Accessibility & contrast

On white

8.16
#2A4E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A4E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E8D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E8D#FFFFFF#000000##FFFFFF
##2A4E8D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548F
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e8d;
/* rgb */ color: rgb(42, 78, 141);
/* oklch */ color: oklch(43.1% 0.112 260.7);
Tailwind
colors: {
  custom: {
    50: '#707faf',
    500: '#2a4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e8d;
$custom-light: #707faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e8d",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 218.182,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.11239,
    "h": 260.7
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#2A4E8D
secondary
#B6965D
accent
#A84ADD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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