#2A5FB0#2A5FB0

#2A5FB0 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.4% C 0.141 H 258.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2A5FB0
RGBrgb(42, 95, 176)
HSLhsl(216, 61%, 43%)
HSVhsv(216, 76%, 69%)
CMYKcmyk(76.1%, 46%, 0%, 31%)
CIE-LABlab(40.91, 11.51, -48.23)
CIE-LCHlch(40.91, 49.59, 283.43°)
OKLaboklab(49.41% -0.0273 -0.1383)
OKLCHoklch(49.41% 0.141 258.8)
XYZxyz(12.8807, 11.8098, 42.6665)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FB0 #B07B2A
analogous
#2AA2B0 #2A5FB0 #382AB0
triadic
#2A5FB0 #B02A5F #5FB02A
tetradic
#2A5FB0 #B02AA2 #B07B2A #2AB038
square
#2A5FB0 #B02AA2 #B07B2A #2AB038
split-complementary
#2A5FB0 #B0382A #A2B02A
monochromatic
#122A4D #1E447F #2A5FB0 #457DD3 #769FDE

Accessibility & contrast

On white

6.25
#2A5FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2A5FB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FB0
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FB0#FFFFFF#000000##FFFFFF
##2A5FB01.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3567B3
Deuteranopia (green-blind)
#165BAE
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5fb0;
/* rgb */ color: rgb(42, 95, 176);
/* oklch */ color: oklch(49.4% 0.141 258.8);
Tailwind
colors: {
  custom: {
    50: '#778bc8',
    500: '#2a5fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fb0;
$custom-light: #778bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fb0",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 176
  },
  "hsl": {
    "h": 216.269,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49413,
    "c": 0.14096,
    "h": 258.8
  },
  "luminance": 0.11811
}

Semantic roles & 50–950 ramp

primary
#2A5FB0
secondary
#C6A470
accent
#A543E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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