#2C5DB5#2C5DB5

#2C5DB5 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.150 H 261.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2C5DB5
RGBrgb(44, 93, 181)
HSLhsl(219, 61%, 44%)
HSVhsv(219, 76%, 71%)
CMYKcmyk(75.7%, 48.6%, 0%, 29%)
CIE-LABlab(40.73, 14.98, -51.45)
CIE-LCHlch(40.73, 53.59, 286.23°)
OKLaboklab(49.4% -0.0234 -0.1478)
OKLCHoklch(49.4% 0.15 261)
XYZxyz(13.2905, 11.6989, 45.2648)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5DB5 #B5842C
analogous
#2CA2B5 #2C5DB5 #402CB5
triadic
#2C5DB5 #B52C5D #5DB52C
tetradic
#2C5DB5 #B52CA2 #B5842C #2CB540
square
#2C5DB5 #B52CA2 #B5842C #2CB540
split-complementary
#2C5DB5 #B5402C #A2B52C
monochromatic
#142A53 #204484 #2C5DB5 #4B7CD3 #7CA0DF

Accessibility & contrast

On white

6.29
#2C5DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2C5DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5DB5
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5DB5#FFFFFF#000000##FFFFFF
##2C5DB51.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5db5;
/* rgb */ color: rgb(44, 93, 181);
/* oklch */ color: oklch(49.4% 0.150 261.0);
Tailwind
colors: {
  custom: {
    50: '#798acc',
    500: '#2c5db5',
    950: '#000000',
  },
}
SCSS
$custom: #2c5db5;
$custom-light: #798acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5db5",
  "rgb": {
    "r": 44,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 218.54,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49399,
    "c": 0.14961,
    "h": 261
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

primary
#2C5DB5
secondary
#C8AA75
accent
#AB44E4
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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