#2A5FB1#2A5FB1

#2A5FB1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.5% C 0.142 H 259.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB1
RGBrgb(42, 95, 177)
HSLhsl(216, 62%, 43%)
HSVhsv(216, 76%, 69%)
CMYKcmyk(76.3%, 46.3%, 0%, 30.6%)
CIE-LABlab(40.98, 11.90, -48.72)
CIE-LCHlch(40.98, 50.15, 283.72°)
OKLaboklab(49.48% -0.0271 -0.1397)
OKLCHoklch(49.48% 0.142 259)
XYZxyz(12.9800, 11.8495, 43.1895)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB1 #B17C2A
analogous
#2AA3B1 #2A5FB1 #382AB1
triadic
#2A5FB1 #B12A5F #5FB12A
tetradic
#2A5FB1 #B12AA3 #B17C2A #2AB138
square
#2A5FB1 #B12AA3 #B17C2A #2AB138
split-complementary
#2A5FB1 #B1382A #A3B12A
monochromatic
#132A4E #1E4480 #2A5FB1 #457DD3 #77A0DF

Accessibility & contrast

On white

6.23
#2A5FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2A5FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB1
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB1#FFFFFF#000000##FFFFFF
##2A5FB11.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5fb1;
/* rgb */ color: rgb(42, 95, 177);
/* oklch */ color: oklch(49.5% 0.142 259.0);
Tailwind
colors: {
  custom: {
    50: '#778bc9',
    500: '#2a5fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb1;
$custom-light: #778bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb1",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 216.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49483,
    "c": 0.14233,
    "h": 259
  },
  "luminance": 0.11851
}

Semantic roles & 50–950 ramp

primary
#2A5FB1
secondary
#C6A570
accent
#A543E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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