#2B5EC2#2B5EC2

#2B5EC2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.166 H 262.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#2B5EC2
RGBrgb(43, 94, 194)
HSLhsl(220, 64%, 46%)
HSVhsv(220, 78%, 76%)
CMYKcmyk(77.8%, 51.5%, 0%, 23.9%)
CIE-LABlab(41.86, 19.18, -57.21)
CIE-LCHlch(41.86, 60.34, 288.53°)
OKLaboklab(50.54% -0.0231 -0.1647)
OKLCHoklch(50.54% 0.166 262)
XYZxyz(14.7331, 12.4123, 52.6478)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EC2 #C28F2B
analogous
#2BAAC2 #2B5EC2 #442BC2
triadic
#2B5EC2 #C22B5E #5EC22B
tetradic
#2B5EC2 #C22BAA #C28F2B #2BC244
square
#2B5EC2 #C22BAA #C28F2B #2BC244
split-complementary
#2B5EC2 #C2442B #AAC22B
monochromatic
#152D5E #204690 #2B5EC2 #527FD9 #84A4E4

Accessibility & contrast

On white

6.03
#2B5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#2B5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EC2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EC2#FFFFFF#000000##FFFFFF
##2B5EC21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6AC6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b5ec2;
/* rgb */ color: rgb(43, 94, 194);
/* oklch */ color: oklch(50.5% 0.166 262.0);
Tailwind
colors: {
  custom: {
    50: '#7b8bd5',
    500: '#2b5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #2b5ec2;
$custom-light: #7b8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5ec2",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 219.735,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50536,
    "c": 0.16635,
    "h": 262
  },
  "luminance": 0.12414
}

Semantic roles & 50–950 ramp

primary
#2B5EC2
secondary
#CDB27C
accent
#AF41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2B5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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