#2A5DB6#2A5DB6

#2A5DB6 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.152 H 260.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB6
RGBrgb(42, 93, 182)
HSLhsl(218, 63%, 44%)
HSVhsv(218, 77%, 71%)
CMYKcmyk(76.9%, 48.9%, 0%, 28.6%)
CIE-LABlab(40.73, 15.12, -52.05)
CIE-LCHlch(40.73, 54.20, 286.20°)
OKLaboklab(49.4% -0.0246 -0.1496)
OKLCHoklch(49.4% 0.152 260.7)
XYZxyz(13.3096, 11.6968, 45.8031)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB6 #B6832A
analogous
#2AA3B6 #2A5DB6 #3D2AB6
triadic
#2A5DB6 #B62A5D #5DB62A
tetradic
#2A5DB6 #B62AA3 #B6832A #2AB63D
square
#2A5DB6 #B62AA3 #B6832A #2AB63D
split-complementary
#2A5DB6 #B63D2A #A3B62A
monochromatic
#132A53 #1F4484 #2A5DB6 #487CD5 #7A9FE0

Accessibility & contrast

On white

6.29
#2A5DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2A5DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB6
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB6#FFFFFF#000000##FFFFFF
##2A5DB61.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5db6;
/* rgb */ color: rgb(42, 93, 182);
/* oklch */ color: oklch(49.4% 0.152 260.7);
Tailwind
colors: {
  custom: {
    50: '#788acc',
    500: '#2a5db6',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db6;
$custom-light: #788acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db6",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 182
  },
  "hsl": {
    "h": 218.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49398,
    "c": 0.15157,
    "h": 260.7
  },
  "luminance": 0.11698
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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