#2D6DCA#2D6DCA

#2D6DCA is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.4% C 0.159 H 258.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2D6DCA
RGBrgb(45, 109, 202)
HSLhsl(216, 64%, 48%)
HSVhsv(216, 78%, 79%)
CMYKcmyk(77.7%, 46%, 0%, 20.8%)
CIE-LABlab(46.65, 12.79, -54.10)
CIE-LCHlch(46.65, 55.59, 283.30°)
OKLaboklab(54.4% -0.0324 -0.1553)
OKLCHoklch(54.4% 0.159 258.2)
XYZxyz(17.2076, 15.7574, 58.0002)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6DCA #CA8A2D
analogous
#2DBBCA #2D6DCA #3B2DCA
triadic
#2D6DCA #CA2D6D #6DCA2D
tetradic
#2D6DCA #CA2DBB #CA8A2D #2DCA3B
square
#2D6DCA #CA2DBB #CA8A2D #2DCA3B
split-complementary
#2D6DCA #CA3B2D #BBCA2D
monochromatic
#173766 #225298 #2D6DCA #5A8EDA #8CB0E5

Accessibility & contrast

On white

5.06
#2D6DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2D6DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6DCA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6DCA#FFFFFF#000000##FFFFFF
##2D6DCA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B76CE
Deuteranopia (green-blind)
#1368C8
Tritanopia (blue-blind)
#008392
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d6dca;
/* rgb */ color: rgb(45, 109, 202);
/* oklch */ color: oklch(54.4% 0.159 258.2);
Tailwind
colors: {
  custom: {
    50: '#7d96db',
    500: '#2d6dca',
    950: '#000000',
  },
}
SCSS
$custom: #2d6dca;
$custom-light: #7d96db;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6dca",
  "rgb": {
    "r": 45,
    "g": 109,
    "b": 202
  },
  "hsl": {
    "h": 215.541,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54397,
    "c": 0.1586,
    "h": 258.2
  },
  "luminance": 0.15759
}

Semantic roles & 50–950 ramp

primary
#2D6DCA
secondary
#CFB083
accent
#A341E7
background
#F8F9FD
surface
#EFF1FB
border
#CACBD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2D6DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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