#2A4FBC#2A4FBC

#2A4FBC is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.177 H 265.6°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2A4FBC
RGBrgb(42, 79, 188)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 78%, 74%)
CMYKcmyk(77.7%, 58%, 0%, 26.3%)
CIE-LABlab(37.32, 26.61, -61.08)
CIE-LCHlch(37.32, 66.63, 293.54°)
OKLaboklab(46.95% -0.0136 -0.1764)
OKLCHoklch(46.95% 0.177 265.6)
XYZxyz(12.8247, 9.7136, 48.7662)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FBC #BC972A
analogous
#2A98BC #2A4FBC #4E2ABC
triadic
#2A4FBC #BC2A4F #4FBC2A
tetradic
#2A4FBC #BC2A98 #BC972A #2ABC4E
square
#2A4FBC #BC2A98 #BC972A #2ABC4E
split-complementary
#2A4FBC #BC4E2A #98BC2A
monochromatic
#142558 #1F3A8A #2A4FBC #4C6FD7 #7E98E2

Accessibility & contrast

On white

7.14
#2A4FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2A4FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FBC
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FBC#FFFFFF#000000##FFFFFF
##2A4FBC1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a4fbc;
/* rgb */ color: rgb(42, 79, 188);
/* oklch */ color: oklch(47.0% 0.177 265.6);
Tailwind
colors: {
  custom: {
    50: '#7a7fd1',
    500: '#2a4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fbc;
$custom-light: #7a7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fbc",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 224.795,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46953,
    "c": 0.17691,
    "h": 265.6
  },
  "luminance": 0.09715
}

Semantic roles & 50–950 ramp

primary
#2A4FBC
secondary
#CBB677
accent
#BD41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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