#2A4CB4#2A4CB4

#2A4CB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.170 H 266.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2A4CB4
RGBrgb(42, 76, 180)
HSLhsl(225, 62%, 44%)
HSVhsv(225, 77%, 71%)
CMYKcmyk(76.7%, 57.8%, 0%, 29.4%)
CIE-LABlab(35.90, 25.56, -58.70)
CIE-LCHlch(35.90, 64.02, 293.53°)
OKLaboklab(45.69% -0.0118 -0.1694)
OKLCHoklch(45.69% 0.17 266)
XYZxyz(11.7746, 8.9551, 44.2791)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CB4 #B4922A
analogous
#2A91B4 #2A4CB4 #4D2AB4
triadic
#2A4CB4 #B42A4C #4CB42A
tetradic
#2A4CB4 #B42A91 #B4922A #2AB44D
square
#2A4CB4 #B42A91 #B4922A #2AB44D
split-complementary
#2A4CB4 #B44D2A #91B42A
monochromatic
#132251 #1E3782 #2A4CB4 #476AD4 #7992E0

Accessibility & contrast

On white

7.52
#2A4CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2A4CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4CB4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4CB4#FFFFFF#000000##FFFFFF
##2A4CB41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4cb4;
/* rgb */ color: rgb(42, 76, 180);
/* oklch */ color: oklch(45.7% 0.170 266.0);
Tailwind
colors: {
  custom: {
    50: '#797dcb',
    500: '#2a4cb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cb4;
$custom-light: #797dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cb4",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 225.217,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45687,
    "c": 0.16984,
    "h": 266
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#2A4CB4
secondary
#C8B372
accent
#BD43E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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