#2A4DBB#2A4DBB

#2A4DBB is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.178 H 266.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#2A4DBB
RGBrgb(42, 77, 187)
HSLhsl(226, 63%, 45%)
HSVhsv(226, 78%, 73%)
CMYKcmyk(77.5%, 58.8%, 0%, 26.7%)
CIE-LABlab(36.72, 27.55, -61.48)
CIE-LCHlch(36.72, 67.37, 294.13°)
OKLaboklab(46.48% -0.0123 -0.1776)
OKLCHoklch(46.48% 0.178 266)
XYZxyz(12.5752, 9.3864, 48.1531)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DBB #BB982A
analogous
#2A96BB #2A4DBB #4F2ABB
triadic
#2A4DBB #BB2A4D #4DBB2A
tetradic
#2A4DBB #BB2A96 #BB982A #2ABB4F
square
#2A4DBB #BB2A96 #BB982A #2ABB4F
split-complementary
#2A4DBB #BB4F2A #96BB2A
monochromatic
#142457 #1F3889 #2A4DBB #4C6DD7 #7D96E2

Accessibility & contrast

On white

7.30
#2A4DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2A4DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DBB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DBB#FFFFFF#000000##FFFFFF
##2A4DBB1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4dbb;
/* rgb */ color: rgb(42, 77, 187);
/* oklch */ color: oklch(46.5% 0.178 266.0);
Tailwind
colors: {
  custom: {
    50: '#7a7ed0',
    500: '#2a4dbb',
    950: '#000000',
  },
}
SCSS
$custom: #2a4dbb;
$custom-light: #7a7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4dbb",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 187
  },
  "hsl": {
    "h": 225.517,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46475,
    "c": 0.17802,
    "h": 266
  },
  "luminance": 0.09388
}

Semantic roles & 50–950 ramp

primary
#2A4DBB
secondary
#CAB676
accent
#BF41E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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