#2A4E98#2A4E98

#2A4E98 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.128 H 262.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2A4E98
RGBrgb(42, 78, 152)
HSLhsl(220, 57%, 38%)
HSVhsv(220, 72%, 60%)
CMYKcmyk(72.4%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.41, 13.48, -44.36)
CIE-LCHlch(34.41, 46.37, 286.91°)
OKLaboklab(43.91% -0.0161 -0.1272)
OKLCHoklch(43.91% 0.128 262.8)
XYZxyz(9.3447, 8.2070, 30.7913)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E98 #98742A
analogous
#2A8598 #2A4E98 #3D2A98
triadic
#2A4E98 #982A4E #4E982A
tetradic
#2A4E98 #982A85 #98742A #2A983D
square
#2A4E98 #982A85 #98742A #2A983D
split-complementary
#2A4E98 #983D2A #85982A
monochromatic
#101D38 #1D3568 #2A4E98 #3767C8 #678BD5

Accessibility & contrast

On white

7.95
#2A4E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E98
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E98#FFFFFF#000000##FFFFFF
##2A4E981.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569B
Deuteranopia (green-blind)
#084C96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4e98;
/* rgb */ color: rgb(42, 78, 152);
/* oklch */ color: oklch(43.9% 0.128 262.8);
Tailwind
colors: {
  custom: {
    50: '#727fb7',
    500: '#2a4e98',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e98;
$custom-light: #727fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e98",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 220.364,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43912,
    "c": 0.12825,
    "h": 262.8
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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