#2A5CAF#2A5CAF

#2A5CAF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.143 H 260.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2A5CAF
RGBrgb(42, 92, 175)
HSLhsl(217, 61%, 43%)
HSVhsv(217, 76%, 69%)
CMYKcmyk(76%, 47.4%, 0%, 31.4%)
CIE-LABlab(39.98, 13.08, -49.14)
CIE-LCHlch(39.98, 50.85, 284.91°)
OKLaboklab(48.68% -0.0249 -0.141)
OKLCHoklch(48.68% 0.143 260)
XYZxyz(12.5170, 11.2403, 42.0590)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CAF #AF7D2A
analogous
#2A9EAF #2A5CAF #3B2AAF
triadic
#2A5CAF #AF2A5C #5CAF2A
tetradic
#2A5CAF #AF2A9E #AF7D2A #2AAF3B
square
#2A5CAF #AF2A9E #AF7D2A #2AAF3B
split-complementary
#2A5CAF #AF3B2A #9EAF2A
monochromatic
#12284C #1E427E #2A5CAF #4479D2 #759DDE

Accessibility & contrast

On white

6.46
#2A5CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2A5CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CAF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CAF#FFFFFF#000000##FFFFFF
##2A5CAF1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#0A59AD
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5caf;
/* rgb */ color: rgb(42, 92, 175);
/* oklch */ color: oklch(48.7% 0.143 260.0);
Tailwind
colors: {
  custom: {
    50: '#7789c7',
    500: '#2a5caf',
    950: '#000000',
  },
}
SCSS
$custom: #2a5caf;
$custom-light: #7789c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5caf",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 175
  },
  "hsl": {
    "h": 217.444,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48676,
    "c": 0.1432,
    "h": 260
  },
  "luminance": 0.11242
}

Semantic roles & 50–950 ramp

primary
#2A5CAF
secondary
#C6A56F
accent
#A843E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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