#2A5CB0#2A5CB0

#2A5CB0 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.145 H 260.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2A5CB0
RGBrgb(42, 92, 176)
HSLhsl(218, 61%, 43%)
HSVhsv(218, 76%, 69%)
CMYKcmyk(76.1%, 47.7%, 0%, 31%)
CIE-LABlab(40.05, 13.47, -49.62)
CIE-LCHlch(40.05, 51.41, 285.18°)
OKLaboklab(48.75% -0.0247 -0.1424)
OKLCHoklch(48.75% 0.145 260.2)
XYZxyz(12.6156, 11.2797, 42.5782)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB0 #B07E2A
analogous
#2A9FB0 #2A5CB0 #3B2AB0
triadic
#2A5CB0 #B02A5C #5CB02A
tetradic
#2A5CB0 #B02A9F #B07E2A #2AB03B
square
#2A5CB0 #B02A9F #B07E2A #2AB03B
split-complementary
#2A5CB0 #B03B2A #9FB02A
monochromatic
#12284D #1E427F #2A5CB0 #457AD3 #769DDE

Accessibility & contrast

On white

6.45
#2A5CB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5CB0
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB0#FFFFFF#000000##FFFFFF
##2A5CB01.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B3
Deuteranopia (green-blind)
#0559AE
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5cb0;
/* rgb */ color: rgb(42, 92, 176);
/* oklch */ color: oklch(48.7% 0.145 260.2);
Tailwind
colors: {
  custom: {
    50: '#7789c8',
    500: '#2a5cb0',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb0;
$custom-light: #7789c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb0",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 176
  },
  "hsl": {
    "h": 217.612,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48747,
    "c": 0.14457,
    "h": 260.2
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#2A5CB0
secondary
#C6A670
accent
#A843E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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