#2A5FAF#2A5FAF

#2A5FAF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.3% C 0.140 H 258.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2A5FAF
RGBrgb(42, 95, 175)
HSLhsl(216, 61%, 43%)
HSVhsv(216, 76%, 69%)
CMYKcmyk(76%, 45.7%, 0%, 31.4%)
CIE-LABlab(40.85, 11.13, -47.74)
CIE-LCHlch(40.85, 49.02, 283.12°)
OKLaboklab(49.34% -0.0274 -0.1369)
OKLCHoklch(49.34% 0.14 258.7)
XYZxyz(12.7821, 11.7704, 42.1474)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FAF #AF7A2A
analogous
#2AA2AF #2A5FAF #372AAF
triadic
#2A5FAF #AF2A5F #5FAF2A
tetradic
#2A5FAF #AF2AA2 #AF7A2A #2AAF37
square
#2A5FAF #AF2AA2 #AF7A2A #2AAF37
split-complementary
#2A5FAF #AF372A #A2AF2A
monochromatic
#12294C #1E447E #2A5FAF #447DD2 #759FDE

Accessibility & contrast

On white

6.26
#2A5FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5FAF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FAF#FFFFFF#000000##FFFFFF
##2A5FAF1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3567B2
Deuteranopia (green-blind)
#185BAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5faf;
/* rgb */ color: rgb(42, 95, 175);
/* oklch */ color: oklch(49.3% 0.140 258.7);
Tailwind
colors: {
  custom: {
    50: '#768bc7',
    500: '#2a5faf',
    950: '#000000',
  },
}
SCSS
$custom: #2a5faf;
$custom-light: #768bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5faf",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 216.09,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49344,
    "c": 0.13959,
    "h": 258.7
  },
  "luminance": 0.11772
}

Semantic roles & 50–950 ramp

primary
#2A5FAF
secondary
#C6A36F
accent
#A443E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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