#2A5DB5#2A5DB5

#2A5DB5 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.150 H 260.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB5
RGBrgb(42, 93, 181)
HSLhsl(218, 62%, 44%)
HSVhsv(218, 77%, 71%)
CMYKcmyk(76.8%, 48.6%, 0%, 29%)
CIE-LABlab(40.66, 14.73, -51.57)
CIE-LCHlch(40.66, 53.63, 285.95°)
OKLaboklab(49.33% -0.0248 -0.1482)
OKLCHoklch(49.33% 0.15 260.5)
XYZxyz(13.2067, 11.6556, 45.2608)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB5 #B5822A
analogous
#2AA2B5 #2A5DB5 #3D2AB5
triadic
#2A5DB5 #B52A5D #5DB52A
tetradic
#2A5DB5 #B52AA2 #B5822A #2AB53D
square
#2A5DB5 #B52AA2 #B5822A #2AB53D
split-complementary
#2A5DB5 #B53D2A #A2B52A
monochromatic
#132A52 #1E4383 #2A5DB5 #487BD4 #799FE0

Accessibility & contrast

On white

6.30
#2A5DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2A5DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB5
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB5#FFFFFF#000000##FFFFFF
##2A5DB51.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5db5;
/* rgb */ color: rgb(42, 93, 181);
/* oklch */ color: oklch(49.3% 0.150 260.5);
Tailwind
colors: {
  custom: {
    50: '#788acc',
    500: '#2a5db5',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db5;
$custom-light: #788acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db5",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 217.986,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49326,
    "c": 0.15021,
    "h": 260.5
  },
  "luminance": 0.11657
}

Semantic roles & 50–950 ramp

primary
#2A5DB5
secondary
#C8A973
accent
#AA42E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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