#2C5DB7#2C5DB7

#2C5DB7 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.152 H 261.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2C5DB7
RGBrgb(44, 93, 183)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 76%, 72%)
CMYKcmyk(76%, 49.2%, 0%, 28.2%)
CIE-LABlab(40.87, 15.74, -52.41)
CIE-LCHlch(40.87, 54.72, 286.72°)
OKLaboklab(49.54% -0.0231 -0.1506)
OKLCHoklch(49.54% 0.152 261.3)
XYZxyz(13.4972, 11.7815, 46.3533)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5DB7 #B7862C
analogous
#2CA3B7 #2C5DB7 #412CB7
triadic
#2C5DB7 #B72C5D #5DB72C
tetradic
#2C5DB7 #B72CA3 #B7862C #2CB741
square
#2C5DB7 #B72CA3 #B7862C #2CB741
split-complementary
#2C5DB7 #B7412C #A3B72C
monochromatic
#142B54 #204486 #2C5DB7 #4C7CD4 #7EA0E0

Accessibility & contrast

On white

6.26
#2C5DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2C5DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5DB7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5DB7#FFFFFF#000000##FFFFFF
##2C5DB71.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5db7;
/* rgb */ color: rgb(44, 93, 183);
/* oklch */ color: oklch(49.5% 0.152 261.3);
Tailwind
colors: {
  custom: {
    50: '#798acd',
    500: '#2c5db7',
    950: '#000000',
  },
}
SCSS
$custom: #2c5db7;
$custom-light: #798acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5db7",
  "rgb": {
    "r": 44,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 218.849,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49544,
    "c": 0.15236,
    "h": 261.3
  },
  "luminance": 0.11783
}

Semantic roles & 50–950 ramp

primary
#2C5DB7
secondary
#C8AB76
accent
#AC43E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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