#2A5EBA#2A5EBA

#2A5EBA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.156 H 260.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2A5EBA
RGBrgb(42, 94, 186)
HSLhsl(218, 63%, 45%)
HSVhsv(218, 77%, 73%)
CMYKcmyk(77.4%, 49.5%, 0%, 27.1%)
CIE-LABlab(41.28, 16.00, -53.50)
CIE-LCHlch(41.28, 55.84, 286.65°)
OKLaboklab(49.91% -0.0248 -0.1538)
OKLCHoklch(49.91% 0.156 260.8)
XYZxyz(13.8173, 12.0412, 48.0408)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EBA #BA862A
analogous
#2AA6BA #2A5EBA #3E2ABA
triadic
#2A5EBA #BA2A5E #5EBA2A
tetradic
#2A5EBA #BA2AA6 #BA862A #2ABA3E
square
#2A5EBA #BA2AA6 #BA862A #2ABA3E
split-complementary
#2A5EBA #BA3E2A #A6BA2A
monochromatic
#132C56 #1F4588 #2A5EBA #4B7DD6 #7DA1E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5EBA#FFFFFF#000000##FFFFFF
##2A5EBA1.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)
#2768BD
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5eba;
/* rgb */ color: rgb(42, 94, 186);
/* oklch */ color: oklch(49.9% 0.156 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2a5eba',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eba;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eba",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 218.333,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49907,
    "c": 0.15581,
    "h": 260.8
  },
  "luminance": 0.12043
}

Semantic roles & 50–950 ramp

primary
#2A5EBA
secondary
#CAAC76
accent
#AB42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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