#2D5FBA#2D5FBA

#2D5FBA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.154 H 261.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#2D5FBA
RGBrgb(45, 95, 186)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 76%, 73%)
CMYKcmyk(75.8%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.67, 15.71, -52.87)
CIE-LCHlch(41.67, 55.15, 286.55°)
OKLaboklab(50.23% -0.0236 -0.1519)
OKLCHoklch(50.23% 0.154 261.2)
XYZxyz(14.0341, 12.2859, 48.0766)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FBA #BA882D
analogous
#2DA6BA #2D5FBA #412DBA
triadic
#2D5FBA #BA2D5F #5FBA2D
tetradic
#2D5FBA #BA2DA6 #BA882D #2DBA41
square
#2D5FBA #BA2DA6 #BA882D #2DBA41
split-complementary
#2D5FBA #BA412D #A6BA2D
monochromatic
#152D57 #214689 #2D5FBA #507FD5 #81A3E0

Accessibility & contrast

On white

6.07
#2D5FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2D5FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FBA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FBA#FFFFFF#000000##FFFFFF
##2D5FBA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5fba;
/* rgb */ color: rgb(45, 95, 186);
/* oklch */ color: oklch(50.2% 0.154 261.2);
Tailwind
colors: {
  custom: {
    50: '#7a8bcf',
    500: '#2d5fba',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fba;
$custom-light: #7a8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fba",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 218.723,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50231,
    "c": 0.15373,
    "h": 261.2
  },
  "luminance": 0.12287
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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