#2D5CBB#2D5CBB

#2D5CBB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.159 H 262.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2D5CBB
RGBrgb(45, 92, 187)
HSLhsl(220, 61%, 45%)
HSVhsv(220, 76%, 73%)
CMYKcmyk(75.9%, 50.8%, 0%, 26.7%)
CIE-LABlab(40.89, 18.04, -54.70)
CIE-LCHlch(40.89, 57.60, 288.25°)
OKLaboklab(49.66% -0.021 -0.1573)
OKLCHoklch(49.66% 0.159 262.4)
XYZxyz(13.8758, 11.7985, 48.5501)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5CBB #BB8C2D
analogous
#2DA3BB #2D5CBB #452DBB
triadic
#2D5CBB #BB2D5C #5CBB2D
tetradic
#2D5CBB #BB2DA3 #BB8C2D #2DBB45
square
#2D5CBB #BB2DA3 #BB8C2D #2DBB45
split-complementary
#2D5CBB #BB452D #A3BB2D
monochromatic
#152B58 #21448A #2D5CBB #507CD5 #82A1E1

Accessibility & contrast

On white

6.25
#2D5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2D5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5CBB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5CBB#FFFFFF#000000##FFFFFF
##2D5CBB1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5cbb;
/* rgb */ color: rgb(45, 92, 187);
/* oklch */ color: oklch(49.7% 0.159 262.4);
Tailwind
colors: {
  custom: {
    50: '#7a89d0',
    500: '#2d5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #2d5cbb;
$custom-light: #7a89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5cbb",
  "rgb": {
    "r": 45,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 220.141,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49662,
    "c": 0.15875,
    "h": 262.4
  },
  "luminance": 0.118
}

Semantic roles & 50–950 ramp

primary
#2D5CBB
secondary
#CAAF7A
accent
#AF43E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2D5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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