#2D5EB1#2D5EB1

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

Color values

HEX#2D5EB1
RGBrgb(45, 94, 177)
HSLhsl(218, 59%, 44%)
HSVhsv(218, 75%, 69%)
CMYKcmyk(74.6%, 46.9%, 0%, 30.6%)
CIE-LABlab(40.79, 12.93, -49.00)
CIE-LCHlch(40.79, 50.68, 284.78°)
OKLaboklab(49.37% -0.0241 -0.1405)
OKLCHoklch(49.37% 0.143 260.3)
XYZxyz(13.0178, 11.7362, 43.1657)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EB1 #B1802D
analogous
#2DA0B1 #2D5EB1 #3E2DB1
triadic
#2D5EB1 #B12D5E #5EB12D
tetradic
#2D5EB1 #B12DA0 #B1802D #2DB13E
square
#2D5EB1 #B12DA0 #B1802D #2DB13E
split-complementary
#2D5EB1 #B13E2D #A0B12D
monochromatic
#142A4F #214480 #2D5EB1 #4A7CD1 #7BA0DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5EB1#FFFFFF#000000##FFFFFF
##2D5EB11.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)
#3267B4
Deuteranopia (green-blind)
#115BAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5eb1;
/* rgb */ color: rgb(45, 94, 177);
/* oklch */ color: oklch(49.4% 0.143 260.3);
Tailwind
colors: {
  custom: {
    50: '#788bc9',
    500: '#2d5eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2d5eb1;
$custom-light: #788bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5eb1",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 177
  },
  "hsl": {
    "h": 217.727,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49372,
    "c": 0.14261,
    "h": 260.3
  },
  "luminance": 0.11738
}

Semantic roles & 50–950 ramp

primary
#2D5EB1
secondary
#C6A774
accent
#A845E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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