#2A4AAE#2A4AAE

#2A4AAE is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.8% C 0.164 H 266.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2A4AAE
RGBrgb(42, 74, 174)
HSLhsl(225, 61%, 42%)
HSVhsv(225, 76%, 68%)
CMYKcmyk(75.9%, 57.5%, 0%, 31.8%)
CIE-LABlab(34.89, 24.60, -56.78)
CIE-LCHlch(34.89, 61.88, 293.43°)
OKLaboklab(44.79% -0.0107 -0.1638)
OKLCHoklch(44.79% 0.164 266.3)
XYZxyz(11.0409, 8.4446, 41.0843)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AAE #AE8E2A
analogous
#2A8CAE #2A4AAE #4C2AAE
triadic
#2A4AAE #AE2A4A #4AAE2A
tetradic
#2A4AAE #AE2A8C #AE8E2A #2AAE4C
square
#2A4AAE #AE2A8C #AE8E2A #2AAE4C
split-complementary
#2A4AAE #AE4C2A #8CAE2A
monochromatic
#12204B #1E357D #2A4AAE #4366D2 #758EDE

Accessibility & contrast

On white

7.81
#2A4AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2A4AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AAE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AAE#FFFFFF#000000##FFFFFF
##2A4AAE1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4aae;
/* rgb */ color: rgb(42, 74, 174);
/* oklch */ color: oklch(44.8% 0.164 266.3);
Tailwind
colors: {
  custom: {
    50: '#777cc7',
    500: '#2a4aae',
    950: '#000000',
  },
}
SCSS
$custom: #2a4aae;
$custom-light: #777cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4aae",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 174
  },
  "hsl": {
    "h": 225.455,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44785,
    "c": 0.16417,
    "h": 266.3
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#2A4AAE
secondary
#C5B06F
accent
#BD44E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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