#2A4CB1#2A4CB1

#2A4CB1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.166 H 265.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2A4CB1
RGBrgb(42, 76, 177)
HSLhsl(225, 62%, 43%)
HSVhsv(225, 76%, 69%)
CMYKcmyk(76.3%, 57.1%, 0%, 30.6%)
CIE-LABlab(35.66, 24.41, -57.30)
CIE-LCHlch(35.66, 62.29, 293.08°)
OKLaboklab(45.44% -0.012 -0.1653)
OKLCHoklch(45.44% 0.166 265.9)
XYZxyz(11.4723, 8.8342, 42.6870)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CB1 #B18F2A
analogous
#2A8FB1 #2A4CB1 #4B2AB1
triadic
#2A4CB1 #B12A4C #4CB12A
tetradic
#2A4CB1 #B12A8F #B18F2A #2AB14B
square
#2A4CB1 #B12A8F #B18F2A #2AB14B
split-complementary
#2A4CB1 #B14B2A #8FB12A
monochromatic
#13224E #1E3780 #2A4CB1 #4569D3 #7791DF

Accessibility & contrast

On white

7.59
#2A4CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2A4CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4CB1
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4CB1#FFFFFF#000000##FFFFFF
##2A4CB11.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4cb1;
/* rgb */ color: rgb(42, 76, 177);
/* oklch */ color: oklch(45.4% 0.166 265.9);
Tailwind
colors: {
  custom: {
    50: '#787dc9',
    500: '#2a4cb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cb1;
$custom-light: #787dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cb1",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 224.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45437,
    "c": 0.16577,
    "h": 265.9
  },
  "luminance": 0.08835
}

Semantic roles & 50–950 ramp

primary
#2A4CB1
secondary
#C6B170
accent
#BC43E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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