#2A4E97#2A4E97

#2A4E97 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.127 H 262.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2A4E97
RGBrgb(42, 78, 151)
HSLhsl(220, 56%, 38%)
HSVhsv(220, 72%, 59%)
CMYKcmyk(72.2%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.34, 13.10, -43.86)
CIE-LCHlch(34.34, 45.78, 286.63°)
OKLaboklab(43.84% -0.0163 -0.1258)
OKLCHoklch(43.84% 0.127 262.6)
XYZxyz(9.2632, 8.1744, 30.3618)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E97 #97732A
analogous
#2A8597 #2A4E97 #3C2A97
triadic
#2A4E97 #972A4E #4E972A
tetradic
#2A4E97 #972A85 #97732A #2A973C
square
#2A4E97 #972A85 #97732A #2A973C
split-complementary
#2A4E97 #973C2A #85972A
monochromatic
#0F1D37 #1D3567 #2A4E97 #3767C7 #678BD5

Accessibility & contrast

On white

7.97
#2A4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E97
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E97#FFFFFF#000000##FFFFFF
##2A4E971.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#0C4C96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4e97;
/* rgb */ color: rgb(42, 78, 151);
/* oklch */ color: oklch(43.8% 0.127 262.6);
Tailwind
colors: {
  custom: {
    50: '#727fb6',
    500: '#2a4e97',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e97;
$custom-light: #727fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e97",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 220.183,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43839,
    "c": 0.12682,
    "h": 262.6
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#2A4E97
secondary
#BB9E62
accent
#AE48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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