#2B5DCC#2B5DCC

#2B5DCC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.181 H 263.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2B5DCC
RGBrgb(43, 93, 204)
HSLhsl(221, 65%, 48%)
HSVhsv(221, 79%, 80%)
CMYKcmyk(78.9%, 54.4%, 0%, 20%)
CIE-LABlab(42.31, 23.63, -62.28)
CIE-LCHlch(42.31, 66.61, 290.78°)
OKLaboklab(51.1% -0.0214 -0.1796)
OKLCHoklch(51.1% 0.181 263.2)
XYZxyz(15.8058, 12.7001, 58.7334)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5DCC #CC9A2B
analogous
#2BADCC #2B5DCC #492BCC
triadic
#2B5DCC #CC2B5D #5DCC2B
tetradic
#2B5DCC #CC2BAD #CC9A2B #2BCC49
square
#2B5DCC #CC2BAD #CC9A2B #2BCC49
split-complementary
#2B5DCC #CC492B #ADCC2B
monochromatic
#162F67 #204699 #2B5DCC #5881DC #8BA7E7

Accessibility & contrast

On white

5.93
#2B5DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2B5DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5DCC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5DCC#FFFFFF#000000##FFFFFF
##2B5DCC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#00788B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b5dcc;
/* rgb */ color: rgb(43, 93, 204);
/* oklch */ color: oklch(51.1% 0.181 263.2);
Tailwind
colors: {
  custom: {
    50: '#7d8adc',
    500: '#2b5dcc',
    950: '#000000',
  },
}
SCSS
$custom: #2b5dcc;
$custom-light: #7d8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5dcc",
  "rgb": {
    "r": 43,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 221.366,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.511,
    "c": 0.18092,
    "h": 263.2
  },
  "luminance": 0.12702
}

Semantic roles & 50–950 ramp

primary
#2B5DCC
secondary
#D0B882
accent
#B440E8
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2B5DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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