#2A5DB7#2A5DB7

#2A5DB7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.153 H 260.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB7
RGBrgb(42, 93, 183)
HSLhsl(218, 63%, 44%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(77%, 49.2%, 0%, 28.2%)
CIE-LABlab(40.80, 15.50, -52.52)
CIE-LCHlch(40.80, 54.76, 286.44°)
OKLaboklab(49.47% -0.0245 -0.151)
OKLCHoklch(49.47% 0.153 260.8)
XYZxyz(13.4133, 11.7383, 46.3494)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB7 #B7842A
analogous
#2AA4B7 #2A5DB7 #3E2AB7
triadic
#2A5DB7 #B72A5D #5DB72A
tetradic
#2A5DB7 #B72AA4 #B7842A #2AB73E
square
#2A5DB7 #B72AA4 #B7842A #2AB73E
split-complementary
#2A5DB7 #B73E2A #A4B72A
monochromatic
#132A53 #1F4485 #2A5DB7 #497CD5 #7BA0E1

Accessibility & contrast

On white

6.27
#2A5DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2A5DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB7#FFFFFF#000000##FFFFFF
##2A5DB71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5db7;
/* rgb */ color: rgb(42, 93, 183);
/* oklch */ color: oklch(49.5% 0.153 260.8);
Tailwind
colors: {
  custom: {
    50: '#788acd',
    500: '#2a5db7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db7;
$custom-light: #788acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db7",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 218.298,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49471,
    "c": 0.15294,
    "h": 260.8
  },
  "luminance": 0.1174
}

Semantic roles & 50–950 ramp

primary
#2A5DB7
secondary
#C9AA74
accent
#AB42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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