#2A5BB8#2A5BB8

#2A5BB8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.157 H 261.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5BB8
RGBrgb(42, 91, 184)
HSLhsl(219, 63%, 44%)
HSVhsv(219, 77%, 72%)
CMYKcmyk(77.2%, 50.5%, 0%, 27.8%)
CIE-LABlab(40.30, 17.19, -53.91)
CIE-LCHlch(40.30, 56.58, 287.69°)
OKLaboklab(49.11% -0.0227 -0.1551)
OKLCHoklch(49.11% 0.157 261.7)
XYZxyz(13.3445, 11.4336, 46.8417)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BB8 #B8872A
analogous
#2AA2B8 #2A5BB8 #402AB8
triadic
#2A5BB8 #B82A5B #5BB82A
tetradic
#2A5BB8 #B82AA2 #B8872A #2AB840
square
#2A5BB8 #B82AA2 #B8872A #2AB840
split-complementary
#2A5BB8 #B8402A #A2B82A
monochromatic
#132A54 #1F4286 #2A5BB8 #4A7AD6 #7B9EE1

Accessibility & contrast

On white

6.39
#2A5BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A5BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BB8
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BB8#FFFFFF#000000##FFFFFF
##2A5BB81.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5bb8;
/* rgb */ color: rgb(42, 91, 184);
/* oklch */ color: oklch(49.1% 0.157 261.7);
Tailwind
colors: {
  custom: {
    50: '#7988ce',
    500: '#2a5bb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bb8;
$custom-light: #7988ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bb8",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 219.296,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49114,
    "c": 0.15675,
    "h": 261.7
  },
  "luminance": 0.11435
}

Semantic roles & 50–950 ramp

primary
#2A5BB8
secondary
#C9AC75
accent
#AD42E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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