#2A4D8F#2A4D8F

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

Color values

HEX#2A4D8F
RGBrgb(42, 77, 143)
HSLhsl(219, 55%, 36%)
HSVhsv(219, 71%, 56%)
CMYKcmyk(70.6%, 46.2%, 0%, 43.9%)
CIE-LABlab(33.53, 10.69, -40.31)
CIE-LCHlch(33.53, 41.71, 284.85°)
OKLaboklab(43.04% -0.0167 -0.1153)
OKLCHoklch(43.04% 0.117 261.8)
XYZxyz(8.5649, 7.7823, 27.0320)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D8F #8F6C2A
analogous
#2A808F #2A4D8F #3A2A8F
triadic
#2A4D8F #8F2A4D #4D8F2A
tetradic
#2A4D8F #8F2A80 #8F6C2A #2A8F3A
square
#2A4D8F #8F2A80 #8F6C2A #2A8F3A
split-complementary
#2A4D8F #8F3A2A #808F2A
monochromatic
#0E1A30 #1C3460 #2A4D8F #3866BE #6289D1

Accessibility & contrast

On white

8.21
#2A4D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A4D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D8F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D8F#FFFFFF#000000##FFFFFF
##2A4D8F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5492
Deuteranopia (green-blind)
#194B8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4d8f;
/* rgb */ color: rgb(42, 77, 143);
/* oklch */ color: oklch(43.0% 0.117 261.8);
Tailwind
colors: {
  custom: {
    50: '#707eb0',
    500: '#2a4d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d8f;
$custom-light: #707eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d8f",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 219.208,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43042,
    "c": 0.11654,
    "h": 261.8
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#2A4D8F
secondary
#B7985E
accent
#AB4ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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