#2A5EA8#2A5EA8

#2A5EA8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.131 H 257.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2A5EA8
RGBrgb(42, 94, 168)
HSLhsl(215, 60%, 41%)
HSVhsv(215, 75%, 66%)
CMYKcmyk(75%, 44%, 0%, 34.1%)
CIE-LABlab(40.12, 9.09, -44.78)
CIE-LCHlch(40.12, 45.69, 281.48°)
OKLaboklab(48.64% -0.0279 -0.1282)
OKLCHoklch(48.64% 0.131 257.7)
XYZxyz(12.0228, 11.3235, 38.5902)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EA8 #A8742A
analogous
#2A9DA8 #2A5EA8 #352AA8
triadic
#2A5EA8 #A82A5E #5EA82A
tetradic
#2A5EA8 #A82A9D #A8742A #2AA835
square
#2A5EA8 #A82A9D #A8742A #2AA835
split-complementary
#2A5EA8 #A8352A #9DA82A
monochromatic
#122746 #1E4377 #2A5EA8 #407BCF #719DDB

Accessibility & contrast

On white

6.43
#2A5EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2A5EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EA8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EA8#FFFFFF#000000##FFFFFF
##2A5EA81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AB
Deuteranopia (green-blind)
#2159A7
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5ea8;
/* rgb */ color: rgb(42, 94, 168);
/* oklch */ color: oklch(48.6% 0.131 257.7);
Tailwind
colors: {
  custom: {
    50: '#758bc2',
    500: '#2a5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ea8;
$custom-light: #758bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ea8",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 215.238,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4864,
    "c": 0.13117,
    "h": 257.7
  },
  "luminance": 0.11325
}

Semantic roles & 50–950 ramp

primary
#2A5EA8
secondary
#C39F6B
accent
#A245E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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