#2A4EB6#2A4EB6

#2A4EB6 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.170 H 265.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2A4EB6
RGBrgb(42, 78, 182)
HSLhsl(225, 63%, 44%)
HSVhsv(225, 77%, 71%)
CMYKcmyk(76.9%, 57.1%, 0%, 28.6%)
CIE-LABlab(36.59, 24.99, -58.75)
CIE-LCHlch(36.59, 63.85, 293.04°)
OKLaboklab(46.25% -0.0132 -0.1696)
OKLCHoklch(46.25% 0.17 265.6)
XYZxyz(12.1198, 9.3171, 45.4065)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EB6 #B6922A
analogous
#2A94B6 #2A4EB6 #4C2AB6
triadic
#2A4EB6 #B62A4E #4EB62A
tetradic
#2A4EB6 #B62A94 #B6922A #2AB64C
square
#2A4EB6 #B62A94 #B6922A #2AB64C
split-complementary
#2A4EB6 #B64C2A #94B62A
monochromatic
#132353 #1F3984 #2A4EB6 #486CD5 #7A94E0

Accessibility & contrast

On white

7.33
#2A4EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A4EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EB6
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EB6#FFFFFF#000000##FFFFFF
##2A4EB61.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4eb6;
/* rgb */ color: rgb(42, 78, 182);
/* oklch */ color: oklch(46.3% 0.170 265.6);
Tailwind
colors: {
  custom: {
    50: '#797fcd',
    500: '#2a4eb6',
    950: '#000000',
  },
}
SCSS
$custom: #2a4eb6;
$custom-light: #797fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4eb6",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 224.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46253,
    "c": 0.17008,
    "h": 265.6
  },
  "luminance": 0.09318
}

Semantic roles & 50–950 ramp

primary
#2A4EB6
secondary
#C8B373
accent
#BC42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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