#2B5EC6#2B5EC6

#2B5EC6 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.172 H 262.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2B5EC6
RGBrgb(43, 94, 198)
HSLhsl(220, 64%, 47%)
HSVhsv(220, 78%, 78%)
CMYKcmyk(78.3%, 52.5%, 0%, 22.4%)
CIE-LABlab(42.15, 20.70, -59.07)
CIE-LCHlch(42.15, 62.60, 289.31°)
OKLaboklab(50.84% -0.0227 -0.1702)
OKLCHoklch(50.84% 0.172 262.4)
XYZxyz(15.1883, 12.5944, 55.0456)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EC6 #C6932B
analogous
#2BACC6 #2B5EC6 #462BC6
triadic
#2B5EC6 #C62B5E #5EC62B
tetradic
#2B5EC6 #C62BAC #C6932B #2BC646
square
#2B5EC6 #C62BAC #C6932B #2BC646
split-complementary
#2B5EC6 #C6462B #ACC62B
monochromatic
#152E61 #204694 #2B5EC6 #5480DA #87A6E5

Accessibility & contrast

On white

5.97
#2B5EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2B5EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EC6
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EC6#FFFFFF#000000##FFFFFF
##2B5EC61.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116BCA
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b5ec6;
/* rgb */ color: rgb(43, 94, 198);
/* oklch */ color: oklch(50.8% 0.172 262.4);
Tailwind
colors: {
  custom: {
    50: '#7c8bd8',
    500: '#2b5ec6',
    950: '#000000',
  },
}
SCSS
$custom: #2b5ec6;
$custom-light: #7c8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5ec6",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 220.258,
    "s": 64.315,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5084,
    "c": 0.17172,
    "h": 262.4
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#2B5EC6
secondary
#CEB47F
accent
#B040E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2B5EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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