#2D6BD3#2D6BD3

#2D6BD3 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.6% C 0.173 H 260.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2D6BD3
RGBrgb(45, 107, 211)
HSLhsl(218, 65%, 50%)
HSVhsv(218, 79%, 83%)
CMYKcmyk(78.7%, 49.3%, 0%, 17.3%)
CIE-LABlab(46.68, 17.47, -59.21)
CIE-LCHlch(46.68, 61.74, 286.44°)
OKLaboklab(54.6% -0.0294 -0.1703)
OKLCHoklch(54.6% 0.173 260.2)
XYZxyz(18.0935, 15.7743, 63.7065)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6BD3 #D3952D
analogous
#2DBED3 #2D6BD3 #422DD3
triadic
#2D6BD3 #D32D6B #6BD32D
tetradic
#2D6BD3 #D32DBE #D3952D #2DD342
square
#2D6BD3 #D32DBE #D3952D #2DD342
split-complementary
#2D6BD3 #D3422D #BED32D
monochromatic
#17386E #2251A1 #2D6BD3 #608FDE #92B2E8

Accessibility & contrast

On white

5.05
#2D6BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2D6BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6BD3
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6BD3#FFFFFF#000000##FFFFFF
##2D6BD31.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d6bd3;
/* rgb */ color: rgb(45, 107, 211);
/* oklch */ color: oklch(54.6% 0.173 260.2);
Tailwind
colors: {
  custom: {
    50: '#7f94e1',
    500: '#2d6bd3',
    950: '#000000',
  },
}
SCSS
$custom: #2d6bd3;
$custom-light: #7f94e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6bd3",
  "rgb": {
    "r": 45,
    "g": 107,
    "b": 211
  },
  "hsl": {
    "h": 217.59,
    "s": 65.354,
    "l": 50.196
  },
  "oklch": {
    "l": 0.546,
    "c": 0.17288,
    "h": 260.2
  },
  "luminance": 0.15776
}

Semantic roles & 50–950 ramp

primary
#2D6BD3
secondary
#D3B789
accent
#A93FE8
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2D6BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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