#2A4EA7#2A4EA7

#2A4EA7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.149 H 264.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2A4EA7
RGBrgb(42, 78, 167)
HSLhsl(223, 60%, 41%)
HSVhsv(223, 75%, 65%)
CMYKcmyk(74.9%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.46, 19.26, -51.69)
CIE-LCHlch(35.46, 55.16, 290.43°)
OKLaboklab(45.05% -0.0143 -0.1488)
OKLCHoklch(45.05% 0.149 264.5)
XYZxyz(10.6518, 8.7299, 37.6754)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EA7 #A7832A
analogous
#2A8CA7 #2A4EA7 #442AA7
triadic
#2A4EA7 #A72A4E #4EA72A
tetradic
#2A4EA7 #A72A8C #A7832A #2AA744
square
#2A4EA7 #A72A8C #A7832A #2AA744
split-complementary
#2A4EA7 #A7442A #8CA72A
monochromatic
#112045 #1E3776 #2A4EA7 #3F69CF #708FDB

Accessibility & contrast

On white

7.65
#2A4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A4EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EA7
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EA7#FFFFFF#000000##FFFFFF
##2A4EA71.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E59AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4ea7;
/* rgb */ color: rgb(42, 78, 167);
/* oklch */ color: oklch(45.0% 0.149 264.5);
Tailwind
colors: {
  custom: {
    50: '#757fc2',
    500: '#2a4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ea7;
$custom-light: #757fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ea7",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 222.72,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45045,
    "c": 0.14947,
    "h": 264.5
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#2A4EA7
secondary
#C2A96B
accent
#B545E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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