#2A5FB4#2A5FB4

#2A5FB4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.146 H 259.5°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB4
RGBrgb(42, 95, 180)
HSLhsl(217, 62%, 44%)
HSVhsv(217, 77%, 71%)
CMYKcmyk(76.7%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.17, 13.05, -50.17)
CIE-LCHlch(41.17, 51.84, 284.58°)
OKLaboklab(49.69% -0.0266 -0.144)
OKLCHoklch(49.69% 0.146 259.5)
XYZxyz(13.2823, 11.9704, 44.7817)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB4 #B47F2A
analogous
#2AA4B4 #2A5FB4 #3A2AB4
triadic
#2A5FB4 #B42A5F #5FB42A
tetradic
#2A5FB4 #B42AA4 #B47F2A #2AB43A
square
#2A5FB4 #B42AA4 #B47F2A #2AB43A
split-complementary
#2A5FB4 #B43A2A #A4B42A
monochromatic
#132B51 #1E4582 #2A5FB4 #477DD4 #79A0E0

Accessibility & contrast

On white

6.19
#2A5FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2A5FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB4#FFFFFF#000000##FFFFFF
##2A5FB41.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B7
Deuteranopia (green-blind)
#0A5BB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5fb4;
/* rgb */ color: rgb(42, 95, 180);
/* oklch */ color: oklch(49.7% 0.146 259.5);
Tailwind
colors: {
  custom: {
    50: '#788bcb',
    500: '#2a5fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb4;
$custom-light: #788bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb4",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 216.957,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49693,
    "c": 0.14643,
    "h": 259.5
  },
  "luminance": 0.11972
}

Semantic roles & 50–950 ramp

primary
#2A5FB4
secondary
#C8A772
accent
#A743E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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