#2A4E87#2A4E87

#2A4E87 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.104 H 259.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2A4E87
RGBrgb(42, 78, 135)
HSLhsl(217, 53%, 35%)
HSVhsv(217, 69%, 53%)
CMYKcmyk(68.9%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.33, 6.97, -35.73)
CIE-LCHlch(33.33, 36.40, 281.03°)
OKLaboklab(42.73% -0.0194 -0.1018)
OKLCHoklch(42.73% 0.104 259.2)
XYZxyz(8.0508, 7.6895, 23.9769)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E87 #87632A
analogous
#2A7D87 #2A4E87 #352A87
triadic
#2A4E87 #872A4E #4E872A
tetradic
#2A4E87 #872A7D #87632A #2A8735
square
#2A4E87 #872A7D #87632A #2A8735
split-complementary
#2A4E87 #87352A #7D872A
monochromatic
#0D182A #1B3358 #2A4E87 #3969B6 #5E89CD

Accessibility & contrast

On white

8.27
#2A4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E87
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E87#FFFFFF#000000##FFFFFF
##2A4E871.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#254A86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4e87;
/* rgb */ color: rgb(42, 78, 135);
/* oklch */ color: oklch(42.7% 0.104 259.2);
Tailwind
colors: {
  custom: {
    50: '#6e7faa',
    500: '#2a4e87',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e87;
$custom-light: #6e7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e87",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 216.774,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.10367,
    "h": 259.2
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

primary
#2A4E87
secondary
#B3905A
accent
#A44CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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