#2D5EB7#2D5EB7

#2D5EB7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.151 H 261.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2D5EB7
RGBrgb(45, 94, 183)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 75%, 72%)
CMYKcmyk(75.4%, 48.6%, 0%, 28.2%)
CIE-LABlab(41.19, 15.22, -51.89)
CIE-LCHlch(41.19, 54.08, 286.34°)
OKLaboklab(49.8% -0.0232 -0.149)
OKLCHoklch(49.8% 0.151 261.2)
XYZxyz(13.6291, 11.9807, 46.3848)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EB7 #B7862D
analogous
#2DA3B7 #2D5EB7 #412DB7
triadic
#2D5EB7 #B72D5E #5EB72D
tetradic
#2D5EB7 #B72DA3 #B7862D #2DB741
square
#2D5EB7 #B72DA3 #B7862D #2DB741
split-complementary
#2D5EB7 #B7412D #A3B72D
monochromatic
#152C55 #214586 #2D5EB7 #4E7DD3 #7FA1DF

Accessibility & contrast

On white

6.18
#2D5EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D5EB7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EB7#FFFFFF#000000##FFFFFF
##2D5EB71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d5eb7;
/* rgb */ color: rgb(45, 94, 183);
/* oklch */ color: oklch(49.8% 0.151 261.2);
Tailwind
colors: {
  custom: {
    50: '#798bcd',
    500: '#2d5eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5eb7;
$custom-light: #798bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5eb7",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 218.696,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49798,
    "c": 0.15084,
    "h": 261.2
  },
  "luminance": 0.11982
}

Semantic roles & 50–950 ramp

primary
#2D5EB7
secondary
#C8AC78
accent
#AB44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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