#2D5EB8#2D5EB8

#2D5EB8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.152 H 261.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2D5EB8
RGBrgb(45, 94, 184)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 76%, 72%)
CMYKcmyk(75.5%, 48.9%, 0%, 27.8%)
CIE-LABlab(41.25, 15.60, -52.37)
CIE-LCHlch(41.25, 54.64, 286.58°)
OKLaboklab(49.87% -0.023 -0.1505)
OKLCHoklch(49.87% 0.152 261.3)
XYZxyz(13.7335, 12.0224, 46.9349)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EB8 #B8872D
analogous
#2DA4B8 #2D5EB8 #412DB8
triadic
#2D5EB8 #B82D5E #5EB82D
tetradic
#2D5EB8 #B82DA4 #B8872D #2DB841
square
#2D5EB8 #B82DA4 #B8872D #2DB841
split-complementary
#2D5EB8 #B8412D #A4B82D
monochromatic
#152C56 #214587 #2D5EB8 #4E7DD4 #80A2E0

Accessibility & contrast

On white

6.17
#2D5EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2D5EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EB8
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EB8#FFFFFF#000000##FFFFFF
##2D5EB81.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5eb8;
/* rgb */ color: rgb(45, 94, 184);
/* oklch */ color: oklch(49.9% 0.152 261.3);
Tailwind
colors: {
  custom: {
    50: '#798bce',
    500: '#2d5eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5eb8;
$custom-light: #798bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5eb8",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 218.849,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4987,
    "c": 0.15221,
    "h": 261.3
  },
  "luminance": 0.12024
}

Semantic roles & 50–950 ramp

primary
#2D5EB8
secondary
#C9AC78
accent
#AB44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2D5EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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