#2A4E89#2A4E89

#2A4E89 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.107 H 259.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2A4E89
RGBrgb(42, 78, 137)
HSLhsl(217, 53%, 35%)
HSVhsv(217, 69%, 54%)
CMYKcmyk(69.3%, 43.1%, 0%, 46.3%)
CIE-LABlab(33.45, 7.73, -36.76)
CIE-LCHlch(33.45, 37.57, 281.87°)
OKLaboklab(42.86% -0.0189 -0.1049)
OKLCHoklch(42.86% 0.107 259.8)
XYZxyz(8.1930, 7.7463, 24.7255)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E89 #89652A
analogous
#2A7E89 #2A4E89 #352A89
triadic
#2A4E89 #892A4E #4E892A
tetradic
#2A4E89 #892A7E #89652A #2A8935
square
#2A4E89 #892A7E #89652A #2A8935
split-complementary
#2A4E89 #89352A #7E892A
monochromatic
#0D192B #1C335A #2A4E89 #3869B8 #5F89CE

Accessibility & contrast

On white

8.24
#2A4E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A4E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E89
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E89#FFFFFF#000000##FFFFFF
##2A4E891.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538B
Deuteranopia (green-blind)
#234B88
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e89;
/* rgb */ color: rgb(42, 78, 137);
/* oklch */ color: oklch(42.9% 0.107 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fac',
    500: '#2a4e89',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e89;
$custom-light: #6f7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e89",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 217.263,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.10658,
    "h": 259.8
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#2A4E89
secondary
#B4925B
accent
#A54BDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E89

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

Preview Lab → · Contrast checker → · Palette generator →

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