#2A4C8A#2A4C8A

#2A4C8A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.111 H 261.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2A4C8A
RGBrgb(42, 76, 138)
HSLhsl(219, 53%, 35%)
HSVhsv(219, 70%, 54%)
CMYKcmyk(69.6%, 44.9%, 0%, 45.9%)
CIE-LABlab(32.91, 9.44, -38.24)
CIE-LCHlch(32.91, 39.39, 283.87°)
OKLaboklab(42.47% -0.0167 -0.1093)
OKLCHoklch(42.47% 0.111 261.3)
XYZxyz(8.1251, 7.4953, 25.0584)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C8A #8A682A
analogous
#2A7C8A #2A4C8A #382A8A
triadic
#2A4C8A #8A2A4C #4C8A2A
tetradic
#2A4C8A #8A2A7C #8A682A #2A8A38
square
#2A4C8A #8A2A7C #8A682A #2A8A38
split-complementary
#2A4C8A #8A382A #7C8A2A
monochromatic
#0D182C #1C325B #2A4C8A #3866B9 #6087CF

Accessibility & contrast

On white

8.40
#2A4C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A4C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C8A
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C8A#FFFFFF#000000##FFFFFF
##2A4C8A1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528C
Deuteranopia (green-blind)
#1E4989
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4c8a;
/* rgb */ color: rgb(42, 76, 138);
/* oklch */ color: oklch(42.5% 0.111 261.3);
Tailwind
colors: {
  custom: {
    50: '#6f7dac',
    500: '#2a4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c8a;
$custom-light: #6f7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c8a",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 218.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42465,
    "c": 0.11052,
    "h": 261.3
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#2A4C8A
secondary
#B4955B
accent
#A94BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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