#2A5ABD#2A5ABD

#2A5ABD is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.165 H 262.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2A5ABD
RGBrgb(42, 90, 189)
HSLhsl(220, 64%, 45%)
HSVhsv(220, 78%, 74%)
CMYKcmyk(77.8%, 52.4%, 0%, 25.9%)
CIE-LABlab(40.37, 19.76, -56.72)
CIE-LCHlch(40.37, 60.06, 289.21°)
OKLaboklab(49.28% -0.0214 -0.1634)
OKLCHoklch(49.28% 0.165 262.5)
XYZxyz(13.7930, 11.4771, 49.6226)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5ABD #BD8D2A
analogous
#2AA3BD #2A5ABD #432ABD
triadic
#2A5ABD #BD2A5A #5ABD2A
tetradic
#2A5ABD #BD2AA3 #BD8D2A #2ABD43
square
#2A5ABD #BD2AA3 #BD8D2A #2ABD43
split-complementary
#2A5ABD #BD432A #A3BD2A
monochromatic
#142A59 #1F428B #2A5ABD #4D7AD7 #7F9FE3

Accessibility & contrast

On white

6.37
#2A5ABD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2A5ABD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5ABD
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5ABD#FFFFFF#000000##FFFFFF
##2A5ABD1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1466C1
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5abd;
/* rgb */ color: rgb(42, 90, 189);
/* oklch */ color: oklch(49.3% 0.165 262.5);
Tailwind
colors: {
  custom: {
    50: '#7a88d2',
    500: '#2a5abd',
    950: '#000000',
  },
}
SCSS
$custom: #2a5abd;
$custom-light: #7a88d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5abd",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 189
  },
  "hsl": {
    "h": 220.408,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49279,
    "c": 0.16476,
    "h": 262.5
  },
  "luminance": 0.11479
}

Semantic roles & 50–950 ramp

primary
#2A5ABD
secondary
#CBB078
accent
#B141E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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