#2D5EBB#2D5EBB

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

Color values

HEX#2D5EBB
RGBrgb(45, 94, 187)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 76%, 73%)
CMYKcmyk(75.9%, 49.7%, 0%, 26.7%)
CIE-LABlab(41.45, 16.74, -53.80)
CIE-LCHlch(41.45, 56.34, 287.28°)
OKLaboklab(50.09% -0.0226 -0.1547)
OKLCHoklch(50.09% 0.156 261.7)
XYZxyz(14.0513, 12.1496, 48.6086)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EBB #BB8A2D
analogous
#2DA5BB #2D5EBB #432DBB
triadic
#2D5EBB #BB2D5E #5EBB2D
tetradic
#2D5EBB #BB2DA5 #BB8A2D #2DBB43
square
#2D5EBB #BB2DA5 #BB8A2D #2DBB43
split-complementary
#2D5EBB #BB432D #A5BB2D
monochromatic
#152C58 #21458A #2D5EBB #507ED5 #82A2E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5EBB#FFFFFF#000000##FFFFFF
##2D5EBB1.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)
#2769BE
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5ebb;
/* rgb */ color: rgb(45, 94, 187);
/* oklch */ color: oklch(50.1% 0.156 261.7);
Tailwind
colors: {
  custom: {
    50: '#7a8bd0',
    500: '#2d5ebb',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ebb;
$custom-light: #7a8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ebb",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 187
  },
  "hsl": {
    "h": 219.296,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50088,
    "c": 0.1563,
    "h": 261.7
  },
  "luminance": 0.12151
}

Semantic roles & 50–950 ramp

primary
#2D5EBB
secondary
#CAAE7A
accent
#AD43E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2D5EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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