#2C5DB9#2C5DB9

#2C5DB9 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.155 H 261.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2C5DB9
RGBrgb(44, 93, 185)
HSLhsl(219, 62%, 45%)
HSVhsv(219, 76%, 73%)
CMYKcmyk(76.2%, 49.7%, 0%, 27.5%)
CIE-LABlab(41.00, 16.51, -53.36)
CIE-LCHlch(41.00, 55.86, 287.19°)
OKLaboklab(49.69% -0.0228 -0.1534)
OKLCHoklch(49.69% 0.155 261.5)
XYZxyz(13.7069, 11.8654, 47.4574)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5DB9 #B9882C
analogous
#2CA3B9 #2C5DB9 #422CB9
triadic
#2C5DB9 #B92C5D #5DB92C
tetradic
#2C5DB9 #B92CA3 #B9882C #2CB942
square
#2C5DB9 #B92CA3 #B9882C #2CB942
split-complementary
#2C5DB9 #B9422C #A3B92C
monochromatic
#142B56 #204488 #2C5DB9 #4D7CD5 #7FA1E1

Accessibility & contrast

On white

6.23
#2C5DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2C5DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5DB9
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5DB9#FFFFFF#000000##FFFFFF
##2C5DB91.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2668BC
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2c5db9;
/* rgb */ color: rgb(44, 93, 185);
/* oklch */ color: oklch(49.7% 0.155 261.5);
Tailwind
colors: {
  custom: {
    50: '#798acf',
    500: '#2c5db9',
    950: '#000000',
  },
}
SCSS
$custom: #2c5db9;
$custom-light: #798acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5db9",
  "rgb": {
    "r": 44,
    "g": 93,
    "b": 185
  },
  "hsl": {
    "h": 219.149,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4969,
    "c": 0.15508,
    "h": 261.5
  },
  "luminance": 0.11867
}

Semantic roles & 50–950 ramp

primary
#2C5DB9
secondary
#C9AD78
accent
#AD43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2C5DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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