#2A4EB4#2A4EB4

#2A4EB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.167 H 265.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2A4EB4
RGBrgb(42, 78, 180)
HSLhsl(224, 62%, 44%)
HSVhsv(224, 77%, 71%)
CMYKcmyk(76.7%, 56.7%, 0%, 29.4%)
CIE-LABlab(36.43, 24.23, -57.83)
CIE-LCHlch(36.43, 62.70, 292.74°)
OKLaboklab(46.09% -0.0133 -0.1668)
OKLCHoklch(46.09% 0.167 265.4)
XYZxyz(11.9145, 9.2350, 44.3258)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EB4 #B4902A
analogous
#2A93B4 #2A4EB4 #4B2AB4
triadic
#2A4EB4 #B42A4E #4EB42A
tetradic
#2A4EB4 #B42A93 #B4902A #2AB44B
square
#2A4EB4 #B42A93 #B4902A #2AB44B
split-complementary
#2A4EB4 #B44B2A #93B42A
monochromatic
#132351 #1E3882 #2A4EB4 #476CD4 #7994E0

Accessibility & contrast

On white

7.38
#2A4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2A4EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EB4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EB4#FFFFFF#000000##FFFFFF
##2A4EB41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4eb4;
/* rgb */ color: rgb(42, 78, 180);
/* oklch */ color: oklch(46.1% 0.167 265.4);
Tailwind
colors: {
  custom: {
    50: '#787fcb',
    500: '#2a4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a4eb4;
$custom-light: #787fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4eb4",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 224.348,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.16737,
    "h": 265.4
  },
  "luminance": 0.09236
}

Semantic roles & 50–950 ramp

primary
#2A4EB4
secondary
#C8B172
accent
#BB43E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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