#2A4FAD#2A4FAD

#2A4FAD is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.157 H 264.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4FAD
RGBrgb(42, 79, 173)
HSLhsl(223, 61%, 42%)
HSVhsv(223, 76%, 68%)
CMYKcmyk(75.7%, 54.3%, 0%, 32.2%)
CIE-LABlab(36.18, 20.89, -54.10)
CIE-LCHlch(36.18, 57.99, 291.12°)
OKLaboklab(45.73% -0.0145 -0.1559)
OKLCHoklch(45.73% 0.157 264.7)
XYZxyz(11.2910, 9.1001, 40.6885)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FAD #AD882A
analogous
#2A91AD #2A4FAD #462AAD
triadic
#2A4FAD #AD2A4F #4FAD2A
tetradic
#2A4FAD #AD2A91 #AD882A #2AAD46
square
#2A4FAD #AD2A91 #AD882A #2AAD46
split-complementary
#2A4FAD #AD462A #91AD2A
monochromatic
#12224B #1E397C #2A4FAD #436BD1 #7492DD

Accessibility & contrast

On white

7.45
#2A4FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2A4FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FAD
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FAD#FFFFFF#000000##FFFFFF
##2A4FAD1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015BB0
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4fad;
/* rgb */ color: rgb(42, 79, 173);
/* oklch */ color: oklch(45.7% 0.157 264.7);
Tailwind
colors: {
  custom: {
    50: '#777fc6',
    500: '#2a4fad',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fad;
$custom-light: #777fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fad",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 173
  },
  "hsl": {
    "h": 223.053,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45728,
    "c": 0.15653,
    "h": 264.7
  },
  "luminance": 0.09101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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