#2A4CAE#2A4CAE

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

Color values

HEX#2A4CAE
RGBrgb(42, 76, 174)
HSLhsl(225, 61%, 42%)
HSVhsv(225, 76%, 68%)
CMYKcmyk(75.9%, 56.3%, 0%, 31.8%)
CIE-LABlab(35.43, 23.27, -55.90)
CIE-LCHlch(35.43, 60.55, 292.60°)
OKLaboklab(45.19% -0.0122 -0.1612)
OKLCHoklch(45.19% 0.162 265.7)
XYZxyz(11.1766, 8.7159, 41.1295)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CAE #AE8C2A
analogous
#2A8EAE #2A4CAE #4A2AAE
triadic
#2A4CAE #AE2A4C #4CAE2A
tetradic
#2A4CAE #AE2A8E #AE8C2A #2AAE4A
square
#2A4CAE #AE2A8E #AE8C2A #2AAE4A
split-complementary
#2A4CAE #AE4A2A #8EAE2A
monochromatic
#12214B #1E367D #2A4CAE #4368D2 #7590DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4CAE#FFFFFF#000000##FFFFFF
##2A4CAE1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4cae;
/* rgb */ color: rgb(42, 76, 174);
/* oklch */ color: oklch(45.2% 0.162 265.7);
Tailwind
colors: {
  custom: {
    50: '#777dc7',
    500: '#2a4cae',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cae;
$custom-light: #777dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cae",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 174
  },
  "hsl": {
    "h": 224.545,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4519,
    "c": 0.16167,
    "h": 265.7
  },
  "luminance": 0.08717
}

Semantic roles & 50–950 ramp

primary
#2A4CAE
secondary
#C5AF6F
accent
#BB44E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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