#2A4DB3#2A4DB3

#2A4DB3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.167 H 265.7°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2A4DB3
RGBrgb(42, 77, 179)
HSLhsl(225, 62%, 43%)
HSVhsv(225, 77%, 70%)
CMYKcmyk(76.5%, 57%, 0%, 29.8%)
CIE-LABlab(36.09, 24.51, -57.80)
CIE-LCHlch(36.09, 62.78, 292.98°)
OKLaboklab(45.8% -0.0126 -0.1668)
OKLCHoklch(45.8% 0.167 265.7)
XYZxyz(11.7425, 9.0534, 43.7677)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DB3 #B3902A
analogous
#2A91B3 #2A4DB3 #4C2AB3
triadic
#2A4DB3 #B32A4D #4DB32A
tetradic
#2A4DB3 #B32A91 #B3902A #2AB34C
square
#2A4DB3 #B32A91 #B3902A #2AB34C
split-complementary
#2A4DB3 #B34C2A #91B32A
monochromatic
#132250 #1E3881 #2A4DB3 #466BD4 #7892DF

Accessibility & contrast

On white

7.47
#2A4DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2A4DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DB3
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DB3#FFFFFF#000000##FFFFFF
##2A4DB31.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4db3;
/* rgb */ color: rgb(42, 77, 179);
/* oklch */ color: oklch(45.8% 0.167 265.7);
Tailwind
colors: {
  custom: {
    50: '#787ecb',
    500: '#2a4db3',
    950: '#000000',
  },
}
SCSS
$custom: #2a4db3;
$custom-light: #787ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4db3",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 224.672,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45804,
    "c": 0.16725,
    "h": 265.7
  },
  "luminance": 0.09055
}

Semantic roles & 50–950 ramp

primary
#2A4DB3
secondary
#C7B172
accent
#BC43E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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