#2A4C8D#2A4C8D

#2A4C8D is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.115 H 262.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2A4C8D
RGBrgb(42, 76, 141)
HSLhsl(219, 54%, 36%)
HSVhsv(219, 70%, 55%)
CMYKcmyk(70.2%, 46.1%, 0%, 44.7%)
CIE-LABlab(33.10, 10.59, -39.77)
CIE-LCHlch(33.10, 41.16, 284.92°)
OKLaboklab(42.67% -0.0161 -0.1138)
OKLCHoklch(42.67% 0.115 262)
XYZxyz(8.3453, 7.5834, 26.2181)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C8D #8D6B2A
analogous
#2A7D8D #2A4C8D #392A8D
triadic
#2A4C8D #8D2A4C #4C8D2A
tetradic
#2A4C8D #8D2A7D #8D6B2A #2A8D39
square
#2A4C8D #8D2A7D #8D6B2A #2A8D39
split-complementary
#2A4C8D #8D392A #7D8D2A
monochromatic
#0E192F #1C335E #2A4C8D #3865BC #6187D0

Accessibility & contrast

On white

8.34
#2A4C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A4C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C8D
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C8D#FFFFFF#000000##FFFFFF
##2A4C8D1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C538F
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4c8d;
/* rgb */ color: rgb(42, 76, 141);
/* oklch */ color: oklch(42.7% 0.115 262.0);
Tailwind
colors: {
  custom: {
    50: '#707daf',
    500: '#2a4c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c8d;
$custom-light: #707daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c8d",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 219.394,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42673,
    "c": 0.11489,
    "h": 262
  },
  "luminance": 0.07584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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