#2D5BA1#2D5BA1

#2D5BA1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.124 H 258.7°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2D5BA1
RGBrgb(45, 91, 161)
HSLhsl(216, 56%, 40%)
HSVhsv(216, 72%, 63%)
CMYKcmyk(72%, 43.5%, 0%, 36.9%)
CIE-LABlab(38.92, 8.80, -42.53)
CIE-LCHlch(38.92, 43.43, 281.69°)
OKLaboklab(47.6% -0.0244 -0.1216)
OKLCHoklch(47.6% 0.124 258.7)
XYZxyz(11.2540, 10.6121, 35.1665)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5BA1 #A1732D
analogous
#2D95A1 #2D5BA1 #392DA1
triadic
#2D5BA1 #A12D5B #5BA12D
tetradic
#2D5BA1 #A12D95 #A1732D #2DA139
square
#2D5BA1 #A12D95 #A1732D #2DA139
split-complementary
#2D5BA1 #A1392D #95A12D
monochromatic
#122541 #204071 #2D5BA1 #4177CA #719AD7

Accessibility & contrast

On white

6.73
#2D5BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2D5BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5BA1
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5BA1#FFFFFF#000000##FFFFFF
##2D5BA11.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3961A4
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d5ba1;
/* rgb */ color: rgb(45, 91, 161);
/* oklch */ color: oklch(47.6% 0.124 258.7);
Tailwind
colors: {
  custom: {
    50: '#7588bd',
    500: '#2d5ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ba1;
$custom-light: #7588bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ba1",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 216.207,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47603,
    "c": 0.12399,
    "h": 258.7
  },
  "luminance": 0.10613
}

Semantic roles & 50–950 ramp

primary
#2D5BA1
secondary
#BF9E6B
accent
#A448E0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D5BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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