#2A4E88#2A4E88

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

Color values

HEX#2A4E88
RGBrgb(42, 78, 136)
HSLhsl(217, 53%, 35%)
HSVhsv(217, 69%, 53%)
CMYKcmyk(69.1%, 42.6%, 0%, 46.7%)
CIE-LABlab(33.39, 7.35, -36.24)
CIE-LCHlch(33.39, 36.98, 281.46°)
OKLaboklab(42.8% -0.0191 -0.1034)
OKLCHoklch(42.8% 0.105 259.5)
XYZxyz(8.1216, 7.7178, 24.3494)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E88 #88642A
analogous
#2A7D88 #2A4E88 #352A88
triadic
#2A4E88 #882A4E #4E882A
tetradic
#2A4E88 #882A7D #88642A #2A8835
square
#2A4E88 #882A7D #88642A #2A8835
split-complementary
#2A4E88 #88352A #7D882A
monochromatic
#0D182A #1C3359 #2A4E88 #3869B7 #5F89CE

Accessibility & contrast

On white

8.26
#2A4E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E88
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E88#FFFFFF#000000##FFFFFF
##2A4E881.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33538A
Deuteranopia (green-blind)
#244A87
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e88;
/* rgb */ color: rgb(42, 78, 136);
/* oklch */ color: oklch(42.8% 0.105 259.5);
Tailwind
colors: {
  custom: {
    50: '#6f7fab',
    500: '#2a4e88',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e88;
$custom-light: #6f7fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e88",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 136
  },
  "hsl": {
    "h": 217.021,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42795,
    "c": 0.10513,
    "h": 259.5
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#2A4E88
secondary
#B3915B
accent
#A54CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E88

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

Preview Lab → · Contrast checker → · Palette generator →

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