#2A4EA6#2A4EA6

#2A4EA6 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.148 H 264.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2A4EA6
RGBrgb(42, 78, 166)
HSLhsl(223, 60%, 41%)
HSVhsv(223, 75%, 65%)
CMYKcmyk(74.7%, 53%, 0%, 34.9%)
CIE-LABlab(35.39, 18.87, -51.21)
CIE-LCHlch(35.39, 54.57, 290.23°)
OKLaboklab(44.97% -0.0144 -0.1474)
OKLCHoklch(44.97% 0.148 264.4)
XYZxyz(10.5597, 8.6930, 37.1904)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EA6 #A6822A
analogous
#2A8CA6 #2A4EA6 #442AA6
triadic
#2A4EA6 #A62A4E #4EA62A
tetradic
#2A4EA6 #A62A8C #A6822A #2AA644
square
#2A4EA6 #A62A8C #A6822A #2AA644
split-complementary
#2A4EA6 #A6442A #8CA62A
monochromatic
#112044 #1E3775 #2A4EA6 #3F68CE #708FDB

Accessibility & contrast

On white

7.67
#2A4EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A4EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EA6
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EA6#FFFFFF#000000##FFFFFF
##2A4EA61.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1159A9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4ea6;
/* rgb */ color: rgb(42, 78, 166);
/* oklch */ color: oklch(45.0% 0.148 264.4);
Tailwind
colors: {
  custom: {
    50: '#757fc1',
    500: '#2a4ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ea6;
$custom-light: #757fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ea6",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 222.581,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44967,
    "c": 0.14807,
    "h": 264.4
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#2A4EA6
secondary
#C2A86A
accent
#B545E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A4EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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