#2A5CB7#2A5CB7

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

Color values

HEX#2A5CB7
RGBrgb(42, 92, 183)
HSLhsl(219, 63%, 44%)
HSVhsv(219, 77%, 72%)
CMYKcmyk(77%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.51, 16.15, -52.98)
CIE-LCHlch(40.51, 55.39, 286.96°)
OKLaboklab(49.26% -0.0237 -0.1523)
OKLCHoklch(49.26% 0.154 261.2)
XYZxyz(13.3261, 11.5639, 46.3203)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB7 #B7852A
analogous
#2AA3B7 #2A5CB7 #3E2AB7
triadic
#2A5CB7 #B72A5C #5CB72A
tetradic
#2A5CB7 #B72AA3 #B7852A #2AB73E
square
#2A5CB7 #B72AA3 #B7852A #2AB73E
split-complementary
#2A5CB7 #B73E2A #A3B72A
monochromatic
#132A53 #1F4385 #2A5CB7 #497BD5 #7B9FE1

Accessibility & contrast

On white

6.34
#2A5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2A5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CB7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB7#FFFFFF#000000##FFFFFF
##2A5CB71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2666BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5cb7;
/* rgb */ color: rgb(42, 92, 183);
/* oklch */ color: oklch(49.3% 0.154 261.2);
Tailwind
colors: {
  custom: {
    50: '#7889cd',
    500: '#2a5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb7;
$custom-light: #7889cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb7",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 218.723,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.15416,
    "h": 261.2
  },
  "luminance": 0.11565
}

Semantic roles & 50–950 ramp

primary
#2A5CB7
secondary
#C9AB74
accent
#AC42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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