#2A4EA1#2A4EA1

#2A4EA1 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.141 H 263.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2A4EA1
RGBrgb(42, 78, 161)
HSLhsl(222, 59%, 40%)
HSVhsv(222, 74%, 63%)
CMYKcmyk(73.9%, 51.6%, 0%, 36.9%)
CIE-LABlab(35.03, 16.95, -48.79)
CIE-LCHlch(35.03, 51.65, 289.16°)
OKLaboklab(44.58% -0.0149 -0.1403)
OKLCHoklch(44.58% 0.141 263.9)
XYZxyz(10.1100, 8.5131, 34.8217)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EA1 #A17D2A
analogous
#2A89A1 #2A4EA1 #422AA1
triadic
#2A4EA1 #A12A4E #4EA12A
tetradic
#2A4EA1 #A12A89 #A17D2A #2AA142
square
#2A4EA1 #A12A89 #A17D2A #2AA142
split-complementary
#2A4EA1 #A1422A #89A12A
monochromatic
#111F40 #1D3670 #2A4EA1 #3C68CC #6D8DD9

Accessibility & contrast

On white

7.77
#2A4EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2A4EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EA1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EA1#FFFFFF#000000##FFFFFF
##2A4EA11.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B58A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4ea1;
/* rgb */ color: rgb(42, 78, 161);
/* oklch */ color: oklch(44.6% 0.141 263.9);
Tailwind
colors: {
  custom: {
    50: '#747fbd',
    500: '#2a4ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ea1;
$custom-light: #747fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ea1",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 221.849,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44583,
    "c": 0.14105,
    "h": 263.9
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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