#2A5FB3#2A5FB3

#2A5FB3 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.145 H 259.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB3
RGBrgb(42, 95, 179)
HSLhsl(217, 62%, 43%)
HSVhsv(217, 77%, 70%)
CMYKcmyk(76.5%, 46.9%, 0%, 29.8%)
CIE-LABlab(41.10, 12.66, -49.68)
CIE-LCHlch(41.10, 51.27, 284.30°)
OKLaboklab(49.62% -0.0267 -0.1426)
OKLCHoklch(49.62% 0.145 259.4)
XYZxyz(13.1808, 11.9298, 44.2471)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB3 #B37E2A
analogous
#2AA3B3 #2A5FB3 #392AB3
triadic
#2A5FB3 #B32A5F #5FB32A
tetradic
#2A5FB3 #B32AA3 #B37E2A #2AB339
square
#2A5FB3 #B32AA3 #B37E2A #2AB339
split-complementary
#2A5FB3 #B3392A #A3B32A
monochromatic
#132A50 #1E4581 #2A5FB3 #467DD4 #78A0DF

Accessibility & contrast

On white

6.20
#2A5FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2A5FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB3
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB3#FFFFFF#000000##FFFFFF
##2A5FB31.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B6
Deuteranopia (green-blind)
#0E5BB1
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5fb3;
/* rgb */ color: rgb(42, 95, 179);
/* oklch */ color: oklch(49.6% 0.145 259.4);
Tailwind
colors: {
  custom: {
    50: '#778bca',
    500: '#2a5fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb3;
$custom-light: #778bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb3",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 216.788,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49623,
    "c": 0.14507,
    "h": 259.4
  },
  "luminance": 0.11931
}

Semantic roles & 50–950 ramp

primary
#2A5FB3
secondary
#C7A672
accent
#A643E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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