#2A5BAA#2A5BAA

#2A5BAA is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.138 H 259.6°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#2A5BAA
RGBrgb(42, 91, 170)
HSLhsl(217, 60%, 42%)
HSVhsv(217, 75%, 67%)
CMYKcmyk(75.3%, 46.5%, 0%, 33.3%)
CIE-LABlab(39.37, 11.81, -47.17)
CIE-LCHlch(39.37, 48.62, 284.06°)
OKLaboklab(48.1% -0.0249 -0.1352)
OKLCHoklch(48.1% 0.138 259.6)
XYZxyz(11.9490, 10.8754, 39.4918)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BAA #AA792A
analogous
#2A9BAA #2A5BAA #392AAA
triadic
#2A5BAA #AA2A5B #5BAA2A
tetradic
#2A5BAA #AA2A9B #AA792A #2AAA39
square
#2A5BAA #AA2A9B #AA792A #2AAA39
split-complementary
#2A5BAA #AA392A #9BAA2A
monochromatic
#122648 #1E4179 #2A5BAA #4178D0 #729BDC

Accessibility & contrast

On white

6.61
#2A5BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2A5BAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BAA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BAA#FFFFFF#000000##FFFFFF
##2A5BAA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AD
Deuteranopia (green-blind)
#1457A8
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5baa;
/* rgb */ color: rgb(42, 91, 170);
/* oklch */ color: oklch(48.1% 0.138 259.6);
Tailwind
colors: {
  custom: {
    50: '#7588c4',
    500: '#2a5baa',
    950: '#000000',
  },
}
SCSS
$custom: #2a5baa;
$custom-light: #7588c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5baa",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 170
  },
  "hsl": {
    "h": 217.031,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48101,
    "c": 0.13751,
    "h": 259.6
  },
  "luminance": 0.10877
}

Semantic roles & 50–950 ramp

primary
#2A5BAA
secondary
#C3A26C
accent
#A744E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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