#2B5BCB#2B5BCB

#2B5BCB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.182 H 263.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#2B5BCB
RGBrgb(43, 91, 203)
HSLhsl(222, 65%, 48%)
HSVhsv(222, 79%, 80%)
CMYKcmyk(78.8%, 55.2%, 0%, 20.4%)
CIE-LABlab(41.70, 24.55, -62.69)
CIE-LCHlch(41.70, 67.33, 291.39°)
OKLaboklab(50.62% -0.0201 -0.1809)
OKLCHoklch(50.62% 0.182 263.7)
XYZxyz(15.5130, 12.3057, 58.0460)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BCB #CB9B2B
analogous
#2BABCB #2B5BCB #4B2BCB
triadic
#2B5BCB #CB2B5B #5BCB2B
tetradic
#2B5BCB #CB2BAB #CB9B2B #2BCB4B
square
#2B5BCB #CB2BAB #CB9B2B #2BCB4B
split-complementary
#2B5BCB #CB4B2B #ABCB2B
monochromatic
#162E66 #204498 #2B5BCB #587FDC #8AA6E6

Accessibility & contrast

On white

6.07
#2B5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2B5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BCB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BCB#FFFFFF#000000##FFFFFF
##2B5BCB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5bcb;
/* rgb */ color: rgb(43, 91, 203);
/* oklch */ color: oklch(50.6% 0.182 263.7);
Tailwind
colors: {
  custom: {
    50: '#7d88dc',
    500: '#2b5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #2b5bcb;
$custom-light: #7d88dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5bcb",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 222,
    "s": 65.041,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50615,
    "c": 0.18202,
    "h": 263.7
  },
  "luminance": 0.12308
}

Semantic roles & 50–950 ramp

primary
#2B5BCB
secondary
#D0B982
accent
#B640E8
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2B5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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