#2A5EB6#2A5EB6

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

Color values

HEX#2A5EB6
RGBrgb(42, 94, 182)
HSLhsl(218, 63%, 44%)
HSVhsv(218, 77%, 71%)
CMYKcmyk(76.9%, 48.4%, 0%, 28.6%)
CIE-LABlab(41.01, 14.47, -51.59)
CIE-LCHlch(41.01, 53.58, 285.66°)
OKLaboklab(49.62% -0.0254 -0.1482)
OKLCHoklch(49.62% 0.15 260.3)
XYZxyz(13.3980, 11.8735, 45.8326)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EB6 #B6822A
analogous
#2AA4B6 #2A5EB6 #3C2AB6
triadic
#2A5EB6 #B62A5E #5EB62A
tetradic
#2A5EB6 #B62AA4 #B6822A #2AB63C
square
#2A5EB6 #B62AA4 #B6822A #2AB63C
split-complementary
#2A5EB6 #B63C2A #A4B62A
monochromatic
#132B53 #1F4484 #2A5EB6 #487DD5 #7AA0E0

Accessibility & contrast

On white

6.22
#2A5EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2A5EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EB6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EB6#FFFFFF#000000##FFFFFF
##2A5EB61.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68B9
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5eb6;
/* rgb */ color: rgb(42, 94, 182);
/* oklch */ color: oklch(49.6% 0.150 260.3);
Tailwind
colors: {
  custom: {
    50: '#788bcc',
    500: '#2a5eb6',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eb6;
$custom-light: #788bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eb6",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 182
  },
  "hsl": {
    "h": 217.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49616,
    "c": 0.15036,
    "h": 260.3
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#2A5EB6
secondary
#C8A973
accent
#A942E6
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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