#2A4E9A#2A4E9A

#2A4E9A is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.131 H 263.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2A4E9A
RGBrgb(42, 78, 154)
HSLhsl(221, 57%, 38%)
HSVhsv(221, 73%, 60%)
CMYKcmyk(72.7%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.55, 14.25, -45.35)
CIE-LCHlch(34.55, 47.54, 287.45°)
OKLaboklab(44.06% -0.0158 -0.1301)
OKLCHoklch(44.06% 0.131 263.1)
XYZxyz(9.5099, 8.2731, 31.6613)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E9A #9A762A
analogous
#2A869A #2A4E9A #3E2A9A
triadic
#2A4E9A #9A2A4E #4E9A2A
tetradic
#2A4E9A #9A2A86 #9A762A #2A9A3E
square
#2A4E9A #9A2A86 #9A762A #2A9A3E
split-complementary
#2A4E9A #9A3E2A #869A2A
monochromatic
#101D3A #1D366A #2A4E9A #3867C9 #688CD6

Accessibility & contrast

On white

7.91
#2A4E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2A4E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E9A
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E9A#FFFFFF#000000##FFFFFF
##2A4E9A1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24579D
Deuteranopia (green-blind)
#014C98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4e9a;
/* rgb */ color: rgb(42, 78, 154);
/* oklch */ color: oklch(44.1% 0.131 263.1);
Tailwind
colors: {
  custom: {
    50: '#727fb8',
    500: '#2a4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e9a;
$custom-light: #727fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e9a",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 220.714,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44058,
    "c": 0.13111,
    "h": 263.1
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#2A4E9A
secondary
#BCA063
accent
#AF47E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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