#2A4E8C#2A4E8C

#2A4E8C is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.111 H 260.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2A4E8C
RGBrgb(42, 78, 140)
HSLhsl(218, 54%, 36%)
HSVhsv(218, 70%, 55%)
CMYKcmyk(70%, 44.3%, 0%, 45.1%)
CIE-LABlab(33.63, 8.88, -38.30)
CIE-LCHlch(33.63, 39.32, 283.05°)
OKLaboklab(43.07% -0.0183 -0.1094)
OKLCHoklch(43.07% 0.111 260.5)
XYZxyz(8.4112, 7.8336, 25.8746)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E8C #8C682A
analogous
#2A7F8C #2A4E8C #372A8C
triadic
#2A4E8C #8C2A4E #4E8C2A
tetradic
#2A4E8C #8C2A7F #8C682A #2A8C37
square
#2A4E8C #8C2A7F #8C682A #2A8C37
split-complementary
#2A4E8C #8C372A #7F8C2A
monochromatic
#0E1A2E #1C345D #2A4E8C #3868BB #618AD0

Accessibility & contrast

On white

8.18
#2A4E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E8C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E8C#FFFFFF#000000##FFFFFF
##2A4E8C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548E
Deuteranopia (green-blind)
#204B8B
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e8c;
/* rgb */ color: rgb(42, 78, 140);
/* oklch */ color: oklch(43.1% 0.111 260.5);
Tailwind
colors: {
  custom: {
    50: '#6f7fae',
    500: '#2a4e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e8c;
$custom-light: #6f7fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e8c",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 140
  },
  "hsl": {
    "h": 217.959,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43065,
    "c": 0.11094,
    "h": 260.5
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#2A4E8C
secondary
#B5955C
accent
#A74BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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