#2D5FB9#2D5FB9

#2D5FB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.152 H 261.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB9
RGBrgb(45, 95, 185)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 76%, 73%)
CMYKcmyk(75.7%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.60, 15.33, -52.39)
CIE-LCHlch(41.60, 54.59, 286.31°)
OKLaboklab(50.16% -0.0237 -0.1505)
OKLCHoklch(50.16% 0.152 261)
XYZxyz(13.9282, 12.2435, 47.5187)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB9 #B9872D
analogous
#2DA5B9 #2D5FB9 #412DB9
triadic
#2D5FB9 #B92D5F #5FB92D
tetradic
#2D5FB9 #B92DA5 #B9872D #2DB941
square
#2D5FB9 #B92DA5 #B9872D #2DB941
split-complementary
#2D5FB9 #B9412D #A5B92D
monochromatic
#152C57 #214688 #2D5FB9 #4F7FD4 #80A2E0

Accessibility & contrast

On white

6.09
#2D5FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2D5FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB9#FFFFFF#000000##FFFFFF
##2D5FB91.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5fb9;
/* rgb */ color: rgb(45, 95, 185);
/* oklch */ color: oklch(50.2% 0.152 261.0);
Tailwind
colors: {
  custom: {
    50: '#7a8bcf',
    500: '#2d5fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb9;
$custom-light: #7a8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb9",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 218.571,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50159,
    "c": 0.15236,
    "h": 261
  },
  "luminance": 0.12245
}

Semantic roles & 50–950 ramp

primary
#2D5FB9
secondary
#C9AC79
accent
#AB44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2D5FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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