#2A5DB0#2A5DB0

#2A5DB0 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.0% C 0.143 H 259.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB0
RGBrgb(42, 93, 176)
HSLhsl(217, 61%, 43%)
HSVhsv(217, 76%, 69%)
CMYKcmyk(76.1%, 47.2%, 0%, 31%)
CIE-LABlab(40.34, 12.81, -49.16)
CIE-LCHlch(40.34, 50.80, 284.61°)
OKLaboklab(48.97% -0.0255 -0.1411)
OKLCHoklch(48.97% 0.143 259.7)
XYZxyz(12.7028, 11.4541, 42.6073)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB0 #B07D2A
analogous
#2AA0B0 #2A5DB0 #3A2AB0
triadic
#2A5DB0 #B02A5D #5DB02A
tetradic
#2A5DB0 #B02AA0 #B07D2A #2AB03A
square
#2A5DB0 #B02AA0 #B07D2A #2AB03A
split-complementary
#2A5DB0 #B03A2A #A0B02A
monochromatic
#12294D #1E437F #2A5DB0 #457BD3 #769EDE

Accessibility & contrast

On white

6.38
#2A5DB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A5DB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB0
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB0#FFFFFF#000000##FFFFFF
##2A5DB01.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B3
Deuteranopia (green-blind)
#0C59AE
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5db0;
/* rgb */ color: rgb(42, 93, 176);
/* oklch */ color: oklch(49.0% 0.143 259.7);
Tailwind
colors: {
  custom: {
    50: '#778ac8',
    500: '#2a5db0',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db0;
$custom-light: #778ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db0",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 176
  },
  "hsl": {
    "h": 217.164,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.14336,
    "h": 259.7
  },
  "luminance": 0.11456
}

Semantic roles & 50–950 ramp

primary
#2A5DB0
secondary
#C6A570
accent
#A743E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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