#2A5FAA#2A5FAA

#2A5FAA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.133 H 257.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#2A5FAA
RGBrgb(42, 95, 170)
HSLhsl(215, 60%, 42%)
HSVhsv(215, 75%, 67%)
CMYKcmyk(75.3%, 44.1%, 0%, 33.3%)
CIE-LABlab(40.54, 9.21, -45.29)
CIE-LCHlch(40.54, 46.22, 281.50°)
OKLaboklab(49% -0.0284 -0.1297)
OKLCHoklch(49% 0.133 257.6)
XYZxyz(12.3001, 11.5776, 39.6089)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FAA #AA752A
analogous
#2A9FAA #2A5FAA #352AAA
triadic
#2A5FAA #AA2A5F #5FAA2A
tetradic
#2A5FAA #AA2A9F #AA752A #2AAA35
square
#2A5FAA #AA2A9F #AA752A #2AAA35
split-complementary
#2A5FAA #AA352A #9FAA2A
monochromatic
#122848 #1E4479 #2A5FAA #417CD0 #729EDC

Accessibility & contrast

On white

6.33
#2A5FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5FAA
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FAA#FFFFFF#000000##FFFFFF
##2A5FAA1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5faa;
/* rgb */ color: rgb(42, 95, 170);
/* oklch */ color: oklch(49.0% 0.133 257.6);
Tailwind
colors: {
  custom: {
    50: '#758bc4',
    500: '#2a5faa',
    950: '#000000',
  },
}
SCSS
$custom: #2a5faa;
$custom-light: #758bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5faa",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 170
  },
  "hsl": {
    "h": 215.156,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49002,
    "c": 0.13273,
    "h": 257.6
  },
  "luminance": 0.11579
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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