#2A4BB2#2A4BB2

#2A4BB2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.168 H 266.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2A4BB2
RGBrgb(42, 75, 178)
HSLhsl(225, 62%, 43%)
HSVhsv(225, 76%, 70%)
CMYKcmyk(76.4%, 57.9%, 0%, 30.2%)
CIE-LABlab(35.47, 25.46, -58.20)
CIE-LCHlch(35.47, 63.53, 293.62°)
OKLaboklab(45.32% -0.0112 -0.168)
OKLCHoklch(45.32% 0.168 266.2)
XYZxyz(11.5040, 8.7375, 43.1911)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4BB2 #B2912A
analogous
#2A8FB2 #2A4BB2 #4D2AB2
triadic
#2A4BB2 #B22A4B #4BB22A
tetradic
#2A4BB2 #B22A8F #B2912A #2AB24D
square
#2A4BB2 #B22A8F #B2912A #2AB24D
split-complementary
#2A4BB2 #B24D2A #8FB22A
monochromatic
#13214F #1E3680 #2A4BB2 #4668D3 #7791DF

Accessibility & contrast

On white

7.64
#2A4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A4BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4BB2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4BB2#FFFFFF#000000##FFFFFF
##2A4BB21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4bb2;
/* rgb */ color: rgb(42, 75, 178);
/* oklch */ color: oklch(45.3% 0.168 266.2);
Tailwind
colors: {
  custom: {
    50: '#787cca',
    500: '#2a4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #2a4bb2;
$custom-light: #787cca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4bb2",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 225.441,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.16837,
    "h": 266.2
  },
  "luminance": 0.08739
}

Semantic roles & 50–950 ramp

primary
#2A4BB2
secondary
#C7B271
accent
#BE43E5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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