#2D5AB7#2D5AB7

#2D5AB7 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.156 H 262.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2D5AB7
RGBrgb(45, 90, 183)
HSLhsl(220, 61%, 45%)
HSVhsv(220, 75%, 72%)
CMYKcmyk(75.4%, 50.8%, 0%, 28.2%)
CIE-LABlab(40.06, 17.83, -53.71)
CIE-LCHlch(40.06, 56.59, 288.36°)
OKLaboklab(48.94% -0.0199 -0.1545)
OKLCHoklch(48.94% 0.156 262.7)
XYZxyz(13.2825, 11.2876, 46.2693)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5AB7 #B78A2D
analogous
#2D9FB7 #2D5AB7 #452DB7
triadic
#2D5AB7 #B72D5A #5AB72D
tetradic
#2D5AB7 #B72D9F #B78A2D #2DB745
square
#2D5AB7 #B72D9F #B78A2D #2DB745
split-complementary
#2D5AB7 #B7452D #9FB72D
monochromatic
#152A55 #214286 #2D5AB7 #4E79D3 #7F9EDF

Accessibility & contrast

On white

6.45
#2D5AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2D5AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5AB7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5AB7#FFFFFF#000000##FFFFFF
##2D5AB71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BA
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2d5ab7;
/* rgb */ color: rgb(45, 90, 183);
/* oklch */ color: oklch(48.9% 0.156 262.7);
Tailwind
colors: {
  custom: {
    50: '#7988cd',
    500: '#2d5ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ab7;
$custom-light: #7988cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ab7",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 220.435,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48938,
    "c": 0.15574,
    "h": 262.7
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#2D5AB7
secondary
#C8AE78
accent
#B044E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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