#2D5FB7#2D5FB7

#2D5FB7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.150 H 260.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB7
RGBrgb(45, 95, 183)
HSLhsl(218, 61%, 45%)
HSVhsv(218, 75%, 72%)
CMYKcmyk(75.4%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.47, 14.57, -51.44)
CIE-LCHlch(41.47, 53.46, 285.81°)
OKLaboklab(50.02% -0.024 -0.1477)
OKLCHoklch(50.02% 0.15 260.8)
XYZxyz(13.7186, 12.1597, 46.4146)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB7 #B7852D
analogous
#2DA4B7 #2D5FB7 #402DB7
triadic
#2D5FB7 #B72D5F #5FB72D
tetradic
#2D5FB7 #B72DA4 #B7852D #2DB740
square
#2D5FB7 #B72DA4 #B7852D #2DB740
split-complementary
#2D5FB7 #B7402D #A4B72D
monochromatic
#152C55 #214686 #2D5FB7 #4E7ED3 #7FA2DF

Accessibility & contrast

On white

6.12
#2D5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2D5FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB7#FFFFFF#000000##FFFFFF
##2D5FB71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BA
Deuteranopia (green-blind)
#015CB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5fb7;
/* rgb */ color: rgb(45, 95, 183);
/* oklch */ color: oklch(50.0% 0.150 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bcd',
    500: '#2d5fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb7;
$custom-light: #798bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb7",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 218.261,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50015,
    "c": 0.14963,
    "h": 260.8
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#2D5FB7
secondary
#C8AB78
accent
#AA44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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