#2A5EB3#2A5EB3

#2A5EB3 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.4% C 0.146 H 259.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5EB3
RGBrgb(42, 94, 179)
HSLhsl(217, 62%, 43%)
HSVhsv(217, 77%, 70%)
CMYKcmyk(76.5%, 47.5%, 0%, 29.8%)
CIE-LABlab(40.82, 13.31, -50.15)
CIE-LCHlch(40.82, 51.88, 284.87°)
OKLaboklab(49.4% -0.0259 -0.1439)
OKLCHoklch(49.4% 0.146 259.8)
XYZxyz(13.0913, 11.7508, 44.2173)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EB3 #B37F2A
analogous
#2AA2B3 #2A5EB3 #3A2AB3
triadic
#2A5EB3 #B32A5E #5EB32A
tetradic
#2A5EB3 #B32AA2 #B37F2A #2AB33A
square
#2A5EB3 #B32AA2 #B37F2A #2AB33A
split-complementary
#2A5EB3 #B33A2A #A2B32A
monochromatic
#132A50 #1E4481 #2A5EB3 #467CD4 #789FDF

Accessibility & contrast

On white

6.27
#2A5EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2A5EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EB3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EB3#FFFFFF#000000##FFFFFF
##2A5EB31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B6
Deuteranopia (green-blind)
#075AB1
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5eb3;
/* rgb */ color: rgb(42, 94, 179);
/* oklch */ color: oklch(49.4% 0.146 259.8);
Tailwind
colors: {
  custom: {
    50: '#778bca',
    500: '#2a5eb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eb3;
$custom-light: #778bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eb3",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 217.226,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49402,
    "c": 0.14626,
    "h": 259.8
  },
  "luminance": 0.11752
}

Semantic roles & 50–950 ramp

primary
#2A5EB3
secondary
#C7A772
accent
#A743E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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