#2A4FAE#2A4FAE

#2A4FAE is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.158 H 264.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2A4FAE
RGBrgb(42, 79, 174)
HSLhsl(223, 61%, 42%)
HSVhsv(223, 76%, 68%)
CMYKcmyk(75.9%, 54.6%, 0%, 31.8%)
CIE-LABlab(36.25, 21.28, -54.57)
CIE-LCHlch(36.25, 58.57, 291.30°)
OKLaboklab(45.81% -0.0144 -0.1572)
OKLCHoklch(45.81% 0.158 264.8)
XYZxyz(11.3881, 9.1389, 41.2000)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FAE #AE892A
analogous
#2A91AE #2A4FAE #472AAE
triadic
#2A4FAE #AE2A4F #4FAE2A
tetradic
#2A4FAE #AE2A91 #AE892A #2AAE47
square
#2A4FAE #AE2A91 #AE892A #2AAE47
split-complementary
#2A4FAE #AE472A #91AE2A
monochromatic
#12224B #1E397D #2A4FAE #436BD2 #7592DE

Accessibility & contrast

On white

7.43
#2A4FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2A4FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FAE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FAE#FFFFFF#000000##FFFFFF
##2A4FAE1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB1
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4fae;
/* rgb */ color: rgb(42, 79, 174);
/* oklch */ color: oklch(45.8% 0.158 264.8);
Tailwind
colors: {
  custom: {
    50: '#777fc7',
    500: '#2a4fae',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fae;
$custom-light: #777fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fae",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 174
  },
  "hsl": {
    "h": 223.182,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45808,
    "c": 0.15791,
    "h": 264.8
  },
  "luminance": 0.0914
}

Semantic roles & 50–950 ramp

primary
#2A4FAE
secondary
#C5AD6F
accent
#B744E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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