#2A4DB2#2A4DB2

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

Color values

HEX#2A4DB2
RGBrgb(42, 77, 178)
HSLhsl(225, 62%, 43%)
HSVhsv(225, 76%, 70%)
CMYKcmyk(76.4%, 56.7%, 0%, 30.2%)
CIE-LABlab(36.01, 24.13, -57.33)
CIE-LCHlch(36.01, 62.20, 292.83°)
OKLaboklab(45.72% -0.0127 -0.1654)
OKLCHoklch(45.72% 0.166 265.6)
XYZxyz(11.6418, 9.0130, 43.2370)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DB2 #B28F2A
analogous
#2A91B2 #2A4DB2 #4B2AB2
triadic
#2A4DB2 #B22A4D #4DB22A
tetradic
#2A4DB2 #B22A91 #B28F2A #2AB24B
square
#2A4DB2 #B22A91 #B28F2A #2AB24B
split-complementary
#2A4DB2 #B24B2A #91B22A
monochromatic
#13224F #1E3880 #2A4DB2 #466AD3 #7792DF

Accessibility & contrast

On white

7.49
#2A4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A4DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DB2
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DB2#FFFFFF#000000##FFFFFF
##2A4DB21.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4db2;
/* rgb */ color: rgb(42, 77, 178);
/* oklch */ color: oklch(45.7% 0.166 265.6);
Tailwind
colors: {
  custom: {
    50: '#787eca',
    500: '#2a4db2',
    950: '#000000',
  },
}
SCSS
$custom: #2a4db2;
$custom-light: #787eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4db2",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 224.559,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45721,
    "c": 0.16589,
    "h": 265.6
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#2A4DB2
secondary
#C7B171
accent
#BB43E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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