#2D5CB7#2D5CB7

#2D5CB7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.153 H 261.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2D5CB7
RGBrgb(45, 92, 183)
HSLhsl(220, 61%, 45%)
HSVhsv(220, 75%, 72%)
CMYKcmyk(75.4%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.62, 16.52, -52.80)
CIE-LCHlch(40.62, 55.33, 287.37°)
OKLaboklab(49.37% -0.0215 -0.1518)
OKLCHoklch(49.37% 0.153 261.9)
XYZxyz(13.4535, 11.6296, 46.3263)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5CB7 #B7882D
analogous
#2DA1B7 #2D5CB7 #432DB7
triadic
#2D5CB7 #B72D5C #5CB72D
tetradic
#2D5CB7 #B72DA1 #B7882D #2DB743
square
#2D5CB7 #B72DA1 #B7882D #2DB743
split-complementary
#2D5CB7 #B7432D #A1B72D
monochromatic
#152B55 #214386 #2D5CB7 #4E7BD3 #7FA0DF

Accessibility & contrast

On white

6.31
#2D5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2D5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5CB7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5CB7#FFFFFF#000000##FFFFFF
##2D5CB71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2666BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5cb7;
/* rgb */ color: rgb(45, 92, 183);
/* oklch */ color: oklch(49.4% 0.153 261.9);
Tailwind
colors: {
  custom: {
    50: '#7989cd',
    500: '#2d5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5cb7;
$custom-light: #7989cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5cb7",
  "rgb": {
    "r": 45,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 219.565,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.15328,
    "h": 261.9
  },
  "luminance": 0.11631
}

Semantic roles & 50–950 ramp

primary
#2D5CB7
secondary
#C8AD78
accent
#AD44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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