#2A5BB5#2A5BB5

#2A5BB5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.153 H 261.3°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#2A5BB5
RGBrgb(42, 91, 181)
HSLhsl(219, 62%, 44%)
HSVhsv(219, 77%, 71%)
CMYKcmyk(76.8%, 49.7%, 0%, 29%)
CIE-LABlab(40.10, 16.04, -52.48)
CIE-LCHlch(40.10, 54.88, 287.00°)
OKLaboklab(48.89% -0.0231 -0.1509)
OKLCHoklch(48.89% 0.153 261.3)
XYZxyz(13.0334, 11.3091, 45.2031)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BB5 #B5842A
analogous
#2AA0B5 #2A5BB5 #3E2AB5
triadic
#2A5BB5 #B52A5B #5BB52A
tetradic
#2A5BB5 #B52AA0 #B5842A #2AB53E
square
#2A5BB5 #B52AA0 #B5842A #2AB53E
split-complementary
#2A5BB5 #B53E2A #A0B52A
monochromatic
#132952 #1E4283 #2A5BB5 #4879D4 #799EE0

Accessibility & contrast

On white

6.44
#2A5BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2A5BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BB5
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BB5#FFFFFF#000000##FFFFFF
##2A5BB51.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5bb5;
/* rgb */ color: rgb(42, 91, 181);
/* oklch */ color: oklch(48.9% 0.153 261.3);
Tailwind
colors: {
  custom: {
    50: '#7888cc',
    500: '#2a5bb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bb5;
$custom-light: #7888cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bb5",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 218.849,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.15264,
    "h": 261.3
  },
  "luminance": 0.11311
}

Semantic roles & 50–950 ramp

primary
#2A5BB5
secondary
#C8AA73
accent
#AC42E5
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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