#2A5EAC#2A5EAC

#2A5EAC is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.137 H 258.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2A5EAC
RGBrgb(42, 94, 172)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 76%, 67%)
CMYKcmyk(75.6%, 45.3%, 0%, 32.5%)
CIE-LABlab(40.37, 10.63, -46.74)
CIE-LCHlch(40.37, 47.94, 282.81°)
OKLaboklab(48.91% -0.0271 -0.134)
OKLCHoklch(48.91% 0.137 258.6)
XYZxyz(12.4012, 11.4748, 40.5830)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EAC #AC782A
analogous
#2A9FAC #2A5EAC #372AAC
triadic
#2A5EAC #AC2A5E #5EAC2A
tetradic
#2A5EAC #AC2A9F #AC782A #2AAC37
square
#2A5EAC #AC2A9F #AC782A #2AAC37
split-complementary
#2A5EAC #AC372A #9FAC2A
monochromatic
#12284A #1E437B #2A5EAC #427BD1 #739EDD

Accessibility & contrast

On white

6.37
#2A5EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2A5EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EAC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EAC#FFFFFF#000000##FFFFFF
##2A5EAC1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3666AF
Deuteranopia (green-blind)
#1B5AAA
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5eac;
/* rgb */ color: rgb(42, 94, 172);
/* oklch */ color: oklch(48.9% 0.137 258.6);
Tailwind
colors: {
  custom: {
    50: '#768bc5',
    500: '#2a5eac',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eac;
$custom-light: #768bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eac",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 172
  },
  "hsl": {
    "h": 216,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48912,
    "c": 0.13667,
    "h": 258.6
  },
  "luminance": 0.11476
}

Semantic roles & 50–950 ramp

primary
#2A5EAC
secondary
#C4A26D
accent
#A444E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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