#2A5DB2#2A5DB2

#2A5DB2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.146 H 260.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB2
RGBrgb(42, 93, 178)
HSLhsl(218, 62%, 43%)
HSVhsv(218, 76%, 70%)
CMYKcmyk(76.4%, 47.8%, 0%, 30.2%)
CIE-LABlab(40.47, 13.58, -50.12)
CIE-LCHlch(40.47, 51.93, 285.16°)
OKLaboklab(49.11% -0.0252 -0.1439)
OKLCHoklch(49.11% 0.146 260.1)
XYZxyz(12.9022, 11.5338, 43.6571)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB2 #B27F2A
analogous
#2AA1B2 #2A5DB2 #3B2AB2
triadic
#2A5DB2 #B22A5D #5DB22A
tetradic
#2A5DB2 #B22AA1 #B27F2A #2AB23B
square
#2A5DB2 #B22AA1 #B27F2A #2AB23B
split-complementary
#2A5DB2 #B23B2A #A1B22A
monochromatic
#13294F #1E4380 #2A5DB2 #467BD3 #779EDF

Accessibility & contrast

On white

6.35
#2A5DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2A5DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB2#FFFFFF#000000##FFFFFF
##2A5DB21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B5
Deuteranopia (green-blind)
#045AB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5db2;
/* rgb */ color: rgb(42, 93, 178);
/* oklch */ color: oklch(49.1% 0.146 260.1);
Tailwind
colors: {
  custom: {
    50: '#778aca',
    500: '#2a5db2',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db2;
$custom-light: #778aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db2",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 217.5,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4911,
    "c": 0.1461,
    "h": 260.1
  },
  "luminance": 0.11535
}

Semantic roles & 50–950 ramp

primary
#2A5DB2
secondary
#C7A771
accent
#A843E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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