#2A5FAB#2A5FAB

#2A5FAB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.134 H 257.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2A5FAB
RGBrgb(42, 95, 171)
HSLhsl(215, 61%, 42%)
HSVhsv(215, 75%, 67%)
CMYKcmyk(75.4%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.60, 9.60, -45.79)
CIE-LCHlch(40.60, 46.78, 281.84°)
OKLaboklab(49.07% -0.0282 -0.1311)
OKLCHoklch(49.07% 0.134 257.9)
XYZxyz(12.3951, 11.6155, 40.1089)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FAB #AB762A
analogous
#2AA0AB #2A5FAB #362AAB
triadic
#2A5FAB #AB2A5F #5FAB2A
tetradic
#2A5FAB #AB2AA0 #AB762A #2AAB36
square
#2A5FAB #AB2AA0 #AB762A #2AAB36
split-complementary
#2A5FAB #AB362A #A0AB2A
monochromatic
#122849 #1E447A #2A5FAB #427CD1 #739EDD

Accessibility & contrast

On white

6.32
#2A5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2A5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FAB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FAB#FFFFFF#000000##FFFFFF
##2A5FAB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5fab;
/* rgb */ color: rgb(42, 95, 171);
/* oklch */ color: oklch(49.1% 0.134 257.9);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2a5fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fab;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fab",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 215.349,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49069,
    "c": 0.13411,
    "h": 257.9
  },
  "luminance": 0.11617
}

Semantic roles & 50–950 ramp

primary
#2A5FAB
secondary
#C4A06D
accent
#A244E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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