#2D5CB5#2D5CB5

#2D5CB5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.151 H 261.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2D5CB5
RGBrgb(45, 92, 181)
HSLhsl(219, 60%, 44%)
HSVhsv(219, 75%, 71%)
CMYKcmyk(75.1%, 49.2%, 0%, 29%)
CIE-LABlab(40.49, 15.76, -51.85)
CIE-LCHlch(40.49, 54.19, 286.91°)
OKLaboklab(49.22% -0.0218 -0.1489)
OKLCHoklch(49.22% 0.151 261.7)
XYZxyz(13.2468, 11.5469, 45.2377)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5CB5 #B5862D
analogous
#2DA0B5 #2D5CB5 #422DB5
triadic
#2D5CB5 #B52D5C #5CB52D
tetradic
#2D5CB5 #B52DA0 #B5862D #2DB542
square
#2D5CB5 #B52DA0 #B5862D #2DB542
split-complementary
#2D5CB5 #B5422D #A0B52D
monochromatic
#152A53 #214384 #2D5CB5 #4D7BD3 #7E9FDF

Accessibility & contrast

On white

6.35
#2D5CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2D5CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5CB5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5CB5#FFFFFF#000000##FFFFFF
##2D5CB51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5cb5;
/* rgb */ color: rgb(45, 92, 181);
/* oklch */ color: oklch(49.2% 0.151 261.7);
Tailwind
colors: {
  custom: {
    50: '#7989cc',
    500: '#2d5cb5',
    950: '#000000',
  },
}
SCSS
$custom: #2d5cb5;
$custom-light: #7989cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5cb5",
  "rgb": {
    "r": 45,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 219.265,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4922,
    "c": 0.15054,
    "h": 261.7
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#2D5CB5
secondary
#C7AB76
accent
#AC44E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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