#2A4D8B#2A4D8B

#2A4D8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.111 H 260.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2A4D8B
RGBrgb(42, 77, 139)
HSLhsl(218, 54%, 35%)
HSVhsv(218, 70%, 55%)
CMYKcmyk(69.8%, 44.6%, 0%, 45.5%)
CIE-LABlab(33.27, 9.16, -38.27)
CIE-LCHlch(33.27, 39.35, 283.46°)
OKLaboklab(42.77% -0.0175 -0.1093)
OKLCHoklch(42.77% 0.111 260.9)
XYZxyz(8.2673, 7.6632, 25.4646)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D8B #8B682A
analogous
#2A7D8B #2A4D8B #382A8B
triadic
#2A4D8B #8B2A4D #4D8B2A
tetradic
#2A4D8B #8B2A7D #8B682A #2A8B38
square
#2A4D8B #8B2A7D #8B682A #2A8B38
split-complementary
#2A4D8B #8B382A #7D8B2A
monochromatic
#0E192D #1C335C #2A4D8B #3867BA #6088CF

Accessibility & contrast

On white

8.29
#2A4D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A4D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D8B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D8B#FFFFFF#000000##FFFFFF
##2A4D8B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#1F4A8A
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4d8b;
/* rgb */ color: rgb(42, 77, 139);
/* oklch */ color: oklch(42.8% 0.111 260.9);
Tailwind
colors: {
  custom: {
    50: '#6f7ead',
    500: '#2a4d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d8b;
$custom-light: #6f7ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d8b",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 218.351,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.11073,
    "h": 260.9
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#2A4D8B
secondary
#B5955C
accent
#A84BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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