#2D5FBC#2D5FBC

#2D5FBC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.156 H 261.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2D5FBC
RGBrgb(45, 95, 188)
HSLhsl(219, 61%, 46%)
HSVhsv(219, 76%, 74%)
CMYKcmyk(76.1%, 49.5%, 0%, 26.3%)
CIE-LABlab(41.80, 16.47, -53.82)
CIE-LCHlch(41.80, 56.28, 287.01°)
OKLaboklab(50.38% -0.0233 -0.1547)
OKLCHoklch(50.38% 0.156 261.4)
XYZxyz(14.2482, 12.3715, 49.2042)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FBC #BC8A2D
analogous
#2DA6BC #2D5FBC #422DBC
triadic
#2D5FBC #BC2D5F #5FBC2D
tetradic
#2D5FBC #BC2DA6 #BC8A2D #2DBC42
square
#2D5FBC #BC2DA6 #BC8A2D #2DBC42
split-complementary
#2D5FBC #BC422D #A6BC2D
monochromatic
#152D59 #21468B #2D5FBC #517FD5 #82A3E1

Accessibility & contrast

On white

6.04
#2D5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2D5FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FBC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FBC#FFFFFF#000000##FFFFFF
##2D5FBC1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286ABF
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2d5fbc;
/* rgb */ color: rgb(45, 95, 188);
/* oklch */ color: oklch(50.4% 0.156 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bd1',
    500: '#2d5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fbc;
$custom-light: #7a8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fbc",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 219.021,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50376,
    "c": 0.15645,
    "h": 261.4
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#2D5FBC
secondary
#CAAE7B
accent
#AC43E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2D5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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