#2A5FB8#2A5FB8

#2A5FB8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.152 H 260.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB8
RGBrgb(42, 95, 184)
HSLhsl(218, 63%, 44%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(77.2%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.43, 14.58, -52.09)
CIE-LCHlch(41.43, 54.09, 285.64°)
OKLaboklab(49.98% -0.0259 -0.1496)
OKLCHoklch(49.98% 0.152 260.2)
XYZxyz(13.6956, 12.1358, 46.9587)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB8 #B8832A
analogous
#2AA6B8 #2A5FB8 #3C2AB8
triadic
#2A5FB8 #B82A5F #5FB82A
tetradic
#2A5FB8 #B82AA6 #B8832A #2AB83C
square
#2A5FB8 #B82AA6 #B8832A #2AB83C
split-complementary
#2A5FB8 #B83C2A #A6B82A
monochromatic
#132C54 #1F4586 #2A5FB8 #4A7ED6 #7BA1E1

Accessibility & contrast

On white

6.13
#2A5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2A5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB8#FFFFFF#000000##FFFFFF
##2A5FB81.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5fb8;
/* rgb */ color: rgb(42, 95, 184);
/* oklch */ color: oklch(50.0% 0.152 260.2);
Tailwind
colors: {
  custom: {
    50: '#788bce',
    500: '#2a5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb8;
$custom-light: #788bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb8",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 217.606,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49979,
    "c": 0.15188,
    "h": 260.2
  },
  "luminance": 0.12137
}

Semantic roles & 50–950 ramp

primary
#2A5FB8
secondary
#C9AA75
accent
#A942E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2A5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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