#2A5FB5#2A5FB5

#2A5FB5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.148 H 259.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB5
RGBrgb(42, 95, 181)
HSLhsl(217, 62%, 44%)
HSVhsv(217, 77%, 71%)
CMYKcmyk(76.8%, 47.5%, 0%, 29%)
CIE-LABlab(41.23, 13.43, -50.65)
CIE-LCHlch(41.23, 52.40, 284.85°)
OKLaboklab(49.76% -0.0264 -0.1454)
OKLCHoklch(49.76% 0.148 259.7)
XYZxyz(13.3845, 12.0113, 45.3201)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB5 #B5802A
analogous
#2AA4B5 #2A5FB5 #3A2AB5
triadic
#2A5FB5 #B52A5F #5FB52A
tetradic
#2A5FB5 #B52AA4 #B5802A #2AB53A
square
#2A5FB5 #B52AA4 #B5802A #2AB53A
split-complementary
#2A5FB5 #B53A2A #A4B52A
monochromatic
#132B52 #1E4583 #2A5FB5 #487DD4 #79A1E0

Accessibility & contrast

On white

6.17
#2A5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2A5FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB5#FFFFFF#000000##FFFFFF
##2A5FB51.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#055BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5fb5;
/* rgb */ color: rgb(42, 95, 181);
/* oklch */ color: oklch(49.8% 0.148 259.7);
Tailwind
colors: {
  custom: {
    50: '#788bcc',
    500: '#2a5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb5;
$custom-light: #788bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb5",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 217.122,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49764,
    "c": 0.14779,
    "h": 259.7
  },
  "luminance": 0.12013
}

Semantic roles & 50–950 ramp

primary
#2A5FB5
secondary
#C8A873
accent
#A742E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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