#2A5FB6#2A5FB6

#2A5FB6 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.149 H 259.9°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB6
RGBrgb(42, 95, 182)
HSLhsl(217, 63%, 44%)
HSVhsv(217, 77%, 71%)
CMYKcmyk(76.9%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.30, 13.82, -51.13)
CIE-LCHlch(41.30, 52.96, 285.12°)
OKLaboklab(49.84% -0.0262 -0.1468)
OKLCHoklch(49.84% 0.149 259.9)
XYZxyz(13.4875, 12.0525, 45.8624)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB6 #B6812A
analogous
#2AA5B6 #2A5FB6 #3B2AB6
triadic
#2A5FB6 #B62A5F #5FB62A
tetradic
#2A5FB6 #B62AA5 #B6812A #2AB63B
square
#2A5FB6 #B62AA5 #B6812A #2AB63B
split-complementary
#2A5FB6 #B63B2A #A5B62A
monochromatic
#132B53 #1F4584 #2A5FB6 #487ED5 #7AA1E0

Accessibility & contrast

On white

6.16
#2A5FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2A5FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB6#FFFFFF#000000##FFFFFF
##2A5FB61.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B9
Deuteranopia (green-blind)
#015BB4
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5fb6;
/* rgb */ color: rgb(42, 95, 182);
/* oklch */ color: oklch(49.8% 0.149 259.9);
Tailwind
colors: {
  custom: {
    50: '#788bcc',
    500: '#2a5fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb6;
$custom-light: #788bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb6",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 217.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49835,
    "c": 0.14916,
    "h": 259.9
  },
  "luminance": 0.12054
}

Semantic roles & 50–950 ramp

primary
#2A5FB6
secondary
#C8A873
accent
#A842E6
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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