#2A4EA2#2A4EA2

#2A4EA2 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.142 H 264.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#2A4EA2
RGBrgb(42, 78, 162)
HSLhsl(222, 59%, 40%)
HSVhsv(222, 74%, 64%)
CMYKcmyk(74.1%, 51.9%, 0%, 36.5%)
CIE-LABlab(35.10, 17.33, -49.27)
CIE-LCHlch(35.10, 52.23, 289.38°)
OKLaboklab(44.66% -0.0148 -0.1417)
OKLCHoklch(44.66% 0.142 264)
XYZxyz(10.1985, 8.5486, 35.2880)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EA2 #A27E2A
analogous
#2A8AA2 #2A4EA2 #422AA2
triadic
#2A4EA2 #A22A4E #4EA22A
tetradic
#2A4EA2 #A22A8A #A27E2A #2AA242
square
#2A4EA2 #A22A8A #A27E2A #2AA242
split-complementary
#2A4EA2 #A2422A #8AA22A
monochromatic
#111F41 #1D3771 #2A4EA2 #3D68CD #6D8ED9

Accessibility & contrast

On white

7.75
#2A4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A4EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EA2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EA2#FFFFFF#000000##FFFFFF
##2A4EA21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4ea2;
/* rgb */ color: rgb(42, 78, 162);
/* oklch */ color: oklch(44.7% 0.142 264.0);
Tailwind
colors: {
  custom: {
    50: '#747fbe',
    500: '#2a4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ea2;
$custom-light: #747fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ea2",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 222,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.44659,
    "c": 0.14246,
    "h": 264
  },
  "luminance": 0.0855
}

Semantic roles & 50–950 ramp

primary
#2A4EA2
secondary
#C0A668
accent
#B346E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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