#2D5EB5#2D5EB5

#2D5EB5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.148 H 260.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#2D5EB5
RGBrgb(45, 94, 181)
HSLhsl(218, 60%, 44%)
HSVhsv(218, 75%, 71%)
CMYKcmyk(75.1%, 48.1%, 0%, 29%)
CIE-LABlab(41.05, 14.46, -50.93)
CIE-LCHlch(41.05, 52.94, 285.84°)
OKLaboklab(49.66% -0.0235 -0.1462)
OKLCHoklch(49.66% 0.148 260.9)
XYZxyz(13.4224, 11.8980, 45.2962)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EB5 #B5842D
analogous
#2DA2B5 #2D5EB5 #402DB5
triadic
#2D5EB5 #B52D5E #5EB52D
tetradic
#2D5EB5 #B52DA2 #B5842D #2DB540
square
#2D5EB5 #B52DA2 #B5842D #2DB540
split-complementary
#2D5EB5 #B5402D #A2B52D
monochromatic
#152B53 #214584 #2D5EB5 #4D7DD3 #7EA1DF

Accessibility & contrast

On white

6.21
#2D5EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2D5EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EB5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EB5#FFFFFF#000000##FFFFFF
##2D5EB51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B8
Deuteranopia (green-blind)
#025BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5eb5;
/* rgb */ color: rgb(45, 94, 181);
/* oklch */ color: oklch(49.7% 0.148 260.9);
Tailwind
colors: {
  custom: {
    50: '#798bcc',
    500: '#2d5eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2d5eb5;
$custom-light: #798bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5eb5",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 218.382,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49655,
    "c": 0.1481,
    "h": 260.9
  },
  "luminance": 0.11899
}

Semantic roles & 50–950 ramp

primary
#2D5EB5
secondary
#C7AA76
accent
#AA44E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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