#2A5CAB#2A5CAB

#2A5CAB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.4% C 0.138 H 259.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#2A5CAB
RGBrgb(42, 92, 171)
HSLhsl(217, 61%, 42%)
HSVhsv(217, 75%, 67%)
CMYKcmyk(75.4%, 46.2%, 0%, 32.9%)
CIE-LABlab(39.72, 11.55, -47.19)
CIE-LCHlch(39.72, 48.58, 283.75°)
OKLaboklab(48.39% -0.0255 -0.1353)
OKLCHoklch(48.39% 0.138 259.3)
XYZxyz(12.1300, 11.0854, 40.0206)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CAB #AB792A
analogous
#2A9DAB #2A5CAB #392AAB
triadic
#2A5CAB #AB2A5C #5CAB2A
tetradic
#2A5CAB #AB2A9D #AB792A #2AAB39
square
#2A5CAB #AB2A9D #AB792A #2AAB39
split-complementary
#2A5CAB #AB392A #9DAB2A
monochromatic
#122749 #1E427A #2A5CAB #4279D1 #739CDD

Accessibility & contrast

On white

6.53
#2A5CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2A5CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CAB
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CAB#FFFFFF#000000##FFFFFF
##2A5CAB1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AE
Deuteranopia (green-blind)
#1658A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5cab;
/* rgb */ color: rgb(42, 92, 171);
/* oklch */ color: oklch(48.4% 0.138 259.3);
Tailwind
colors: {
  custom: {
    50: '#7689c4',
    500: '#2a5cab',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cab;
$custom-light: #7689c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cab",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 216.744,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48394,
    "c": 0.13768,
    "h": 259.3
  },
  "luminance": 0.11087
}

Semantic roles & 50–950 ramp

primary
#2A5CAB
secondary
#C4A26D
accent
#A644E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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