#2A4FB2#2A4FB2

#2A4FB2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.163 H 265.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2A4FB2
RGBrgb(42, 79, 178)
HSLhsl(224, 62%, 43%)
HSVhsv(224, 76%, 70%)
CMYKcmyk(76.4%, 55.6%, 0%, 30.2%)
CIE-LABlab(36.55, 22.81, -56.45)
CIE-LCHlch(36.55, 60.89, 292.00°)
OKLaboklab(46.13% -0.0141 -0.1628)
OKLCHoklch(46.13% 0.163 265)
XYZxyz(11.7839, 9.2972, 43.2843)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FB2 #B28D2A
analogous
#2A93B2 #2A4FB2 #492AB2
triadic
#2A4FB2 #B22A4F #4FB22A
tetradic
#2A4FB2 #B22A93 #B28D2A #2AB249
square
#2A4FB2 #B22A93 #B28D2A #2AB249
split-complementary
#2A4FB2 #B2492A #93B22A
monochromatic
#13234F #1E3980 #2A4FB2 #466CD3 #7794DF

Accessibility & contrast

On white

7.34
#2A4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A4FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FB2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FB2#FFFFFF#000000##FFFFFF
##2A4FB21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4fb2;
/* rgb */ color: rgb(42, 79, 178);
/* oklch */ color: oklch(46.1% 0.163 265.0);
Tailwind
colors: {
  custom: {
    50: '#787fca',
    500: '#2a4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fb2;
$custom-light: #787fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fb2",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 223.676,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46129,
    "c": 0.1634,
    "h": 265
  },
  "luminance": 0.09299
}

Semantic roles & 50–950 ramp

primary
#2A4FB2
secondary
#C7AF71
accent
#B943E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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