#2A4CB9#2A4CB9

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

Color values

HEX#2A4CB9
RGBrgb(42, 76, 185)
HSLhsl(226, 63%, 45%)
HSVhsv(226, 77%, 73%)
CMYKcmyk(77.3%, 58.9%, 0%, 27.5%)
CIE-LABlab(36.30, 27.45, -61.00)
CIE-LCHlch(36.30, 66.89, 294.23°)
OKLaboklab(46.11% -0.0117 -0.1762)
OKLCHoklch(46.11% 0.177 266.2)
XYZxyz(12.2932, 9.1625, 47.0102)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CB9 #B9972A
analogous
#2A94B9 #2A4CB9 #4F2AB9
triadic
#2A4CB9 #B92A4C #4CB92A
tetradic
#2A4CB9 #B92A94 #B9972A #2AB94F
square
#2A4CB9 #B92A94 #B9972A #2AB94F
split-complementary
#2A4CB9 #B94F2A #94B92A
monochromatic
#132355 #1F3887 #2A4CB9 #4A6BD6 #7C94E1

Accessibility & contrast

On white

7.41
#2A4CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4CB9
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4CB9#FFFFFF#000000##FFFFFF
##2A4CB91.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4cb9;
/* rgb */ color: rgb(42, 76, 185);
/* oklch */ color: oklch(46.1% 0.177 266.2);
Tailwind
colors: {
  custom: {
    50: '#7a7dcf',
    500: '#2a4cb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cb9;
$custom-light: #7a7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cb9",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 185
  },
  "hsl": {
    "h": 225.734,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46109,
    "c": 0.17658,
    "h": 266.2
  },
  "luminance": 0.09164
}

Semantic roles & 50–950 ramp

primary
#2A4CB9
secondary
#CAB675
accent
#BF42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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