#2A5BAF#2A5BAF

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

Color values

HEX#2A5BAF
RGBrgb(42, 91, 175)
HSLhsl(218, 61%, 43%)
HSVhsv(218, 76%, 69%)
CMYKcmyk(76%, 48%, 0%, 31.4%)
CIE-LABlab(39.70, 13.74, -49.60)
CIE-LCHlch(39.70, 51.46, 285.48°)
OKLaboklab(48.46% -0.024 -0.1424)
OKLCHoklch(48.46% 0.144 260.4)
XYZxyz(12.4310, 11.0682, 42.0303)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BAF #AF7E2A
analogous
#2A9DAF #2A5BAF #3C2AAF
triadic
#2A5BAF #AF2A5B #5BAF2A
tetradic
#2A5BAF #AF2A9D #AF7E2A #2AAF3C
square
#2A5BAF #AF2A9D #AF7E2A #2AAF3C
split-complementary
#2A5BAF #AF3C2A #9DAF2A
monochromatic
#12284C #1E417E #2A5BAF #4478D2 #759CDE

Accessibility & contrast

On white

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

On black

3.21
#2A5BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A5BAF#FFFFFF#000000##FFFFFF
##2A5BAF1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D64B2
Deuteranopia (green-blind)
#0358AD
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5baf;
/* rgb */ color: rgb(42, 91, 175);
/* oklch */ color: oklch(48.5% 0.144 260.4);
Tailwind
colors: {
  custom: {
    50: '#7788c7',
    500: '#2a5baf',
    950: '#000000',
  },
}
SCSS
$custom: #2a5baf;
$custom-light: #7788c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5baf",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 175
  },
  "hsl": {
    "h": 217.895,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.14441,
    "h": 260.4
  },
  "luminance": 0.1107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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