#2A5AAF#2A5AAF

#2A5AAF is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.146 H 260.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#2A5AAF
RGBrgb(42, 90, 175)
HSLhsl(218, 61%, 43%)
HSVhsv(218, 76%, 69%)
CMYKcmyk(76%, 48.6%, 0%, 31.4%)
CIE-LABlab(39.41, 14.39, -50.06)
CIE-LCHlch(39.41, 52.09, 286.04°)
OKLaboklab(48.24% -0.0232 -0.1438)
OKLCHoklch(48.24% 0.146 260.8)
XYZxyz(12.3461, 10.8983, 42.0020)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AAF #AF7F2A
analogous
#2A9CAF #2A5AAF #3D2AAF
triadic
#2A5AAF #AF2A5A #5AAF2A
tetradic
#2A5AAF #AF2A9C #AF7F2A #2AAF3D
square
#2A5AAF #AF2A9C #AF7F2A #2AAF3D
split-complementary
#2A5AAF #AF3D2A #9CAF2A
monochromatic
#12274C #1E417E #2A5AAF #4477D2 #759BDE

Accessibility & contrast

On white

6.60
#2A5AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2A5AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AAF
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AAF#FFFFFF#000000##FFFFFF
##2A5AAF1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5aaf;
/* rgb */ color: rgb(42, 90, 175);
/* oklch */ color: oklch(48.2% 0.146 260.8);
Tailwind
colors: {
  custom: {
    50: '#7788c7',
    500: '#2a5aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aaf;
$custom-light: #7788c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aaf",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 218.346,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48236,
    "c": 0.14563,
    "h": 260.8
  },
  "luminance": 0.109
}

Semantic roles & 50–950 ramp

primary
#2A5AAF
secondary
#C6A66F
accent
#AA43E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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