#2A5CB8#2A5CB8

#2A5CB8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.156 H 261.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2A5CB8
RGBrgb(42, 92, 184)
HSLhsl(219, 63%, 44%)
HSVhsv(219, 77%, 72%)
CMYKcmyk(77.2%, 50%, 0%, 27.8%)
CIE-LABlab(40.58, 16.54, -53.46)
CIE-LCHlch(40.58, 55.96, 287.19°)
OKLaboklab(49.33% -0.0235 -0.1537)
OKLCHoklch(49.33% 0.156 261.3)
XYZxyz(13.4306, 11.6057, 46.8704)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB8 #B8862A
analogous
#2AA3B8 #2A5CB8 #3F2AB8
triadic
#2A5CB8 #B82A5C #5CB82A
tetradic
#2A5CB8 #B82AA3 #B8862A #2AB83F
square
#2A5CB8 #B82AA3 #B8862A #2AB83F
split-complementary
#2A5CB8 #B83F2A #A3B82A
monochromatic
#132A54 #1F4386 #2A5CB8 #4A7BD6 #7B9FE1

Accessibility & contrast

On white

6.32
#2A5CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2A5CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CB8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB8#FFFFFF#000000##FFFFFF
##2A5CB81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2467BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5cb8;
/* rgb */ color: rgb(42, 92, 184);
/* oklch */ color: oklch(49.3% 0.156 261.3);
Tailwind
colors: {
  custom: {
    50: '#7989ce',
    500: '#2a5cb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb8;
$custom-light: #7989ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb8",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 218.873,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49328,
    "c": 0.15552,
    "h": 261.3
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#2A5CB8
secondary
#C9AB75
accent
#AC42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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