#2A5FB9#2A5FB9

#2A5FB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.153 H 260.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB9
RGBrgb(42, 95, 185)
HSLhsl(218, 63%, 45%)
HSVhsv(218, 77%, 73%)
CMYKcmyk(77.3%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.50, 14.97, -52.56)
CIE-LCHlch(41.50, 54.65, 285.89°)
OKLaboklab(50.05% -0.0258 -0.151)
OKLCHoklch(50.05% 0.153 260.3)
XYZxyz(13.8008, 12.1778, 47.5127)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB9 #B9842A
analogous
#2AA7B9 #2A5FB9 #3C2AB9
triadic
#2A5FB9 #B92A5F #5FB92A
tetradic
#2A5FB9 #B92AA7 #B9842A #2AB93C
square
#2A5FB9 #B92AA7 #B9842A #2AB93C
split-complementary
#2A5FB9 #B93C2A #A7B92A
monochromatic
#132C55 #1F4587 #2A5FB9 #4A7ED6 #7CA2E1

Accessibility & contrast

On white

6.11
#2A5FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2A5FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB9
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB9#FFFFFF#000000##FFFFFF
##2A5FB91.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5fb9;
/* rgb */ color: rgb(42, 95, 185);
/* oklch */ color: oklch(50.1% 0.153 260.3);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2a5fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb9;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb9",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 217.762,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50051,
    "c": 0.15323,
    "h": 260.3
  },
  "luminance": 0.12179
}

Semantic roles & 50–950 ramp

primary
#2A5FB9
secondary
#CAAA75
accent
#A942E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2A5FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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