#2A4E99#2A4E99

#2A4E99 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.130 H 262.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2A4E99
RGBrgb(42, 78, 153)
HSLhsl(221, 57%, 38%)
HSVhsv(221, 73%, 60%)
CMYKcmyk(72.5%, 49%, 0%, 40%)
CIE-LABlab(34.48, 13.87, -44.86)
CIE-LCHlch(34.48, 46.95, 287.18°)
OKLaboklab(43.99% -0.016 -0.1287)
OKLCHoklch(43.99% 0.13 262.9)
XYZxyz(9.4270, 8.2399, 31.2245)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E99 #99752A
analogous
#2A8599 #2A4E99 #3E2A99
triadic
#2A4E99 #992A4E #4E992A
tetradic
#2A4E99 #992A85 #99752A #2A993E
square
#2A4E99 #992A85 #99752A #2A993E
split-complementary
#2A4E99 #993E2A #85992A
monochromatic
#101D39 #1D3669 #2A4E99 #3867C8 #688BD6

Accessibility & contrast

On white

7.93
#2A4E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E99
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E99#FFFFFF#000000##FFFFFF
##2A4E991.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569C
Deuteranopia (green-blind)
#054C97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4e99;
/* rgb */ color: rgb(42, 78, 153);
/* oklch */ color: oklch(44.0% 0.130 262.9);
Tailwind
colors: {
  custom: {
    50: '#727fb7',
    500: '#2a4e99',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e99;
$custom-light: #727fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e99",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 220.541,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43985,
    "c": 0.12968,
    "h": 262.9
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#2A4E99
secondary
#BC9F63
accent
#AF48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4E99

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

Preview Lab → · Contrast checker → · Palette generator →

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