#2B4EC4#2B4EC4

#2B4EC4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.5% C 0.188 H 266.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2B4EC4
RGBrgb(43, 78, 196)
HSLhsl(226, 64%, 47%)
HSVhsv(226, 78%, 77%)
CMYKcmyk(78.1%, 60.2%, 0%, 23.1%)
CIE-LABlab(37.75, 30.37, -65.07)
CIE-LCHlch(37.75, 71.81, 295.02°)
OKLaboklab(47.48% -0.0119 -0.1881)
OKLCHoklch(47.48% 0.188 266.4)
XYZxyz(13.6810, 9.9463, 53.4126)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4EC4 #C4A12B
analogous
#2B9AC4 #2B4EC4 #552BC4
triadic
#2B4EC4 #C42B4E #4EC42B
tetradic
#2B4EC4 #C42B9A #C4A12B #2BC455
square
#2B4EC4 #C42B9A #C4A12B #2BC455
split-complementary
#2B4EC4 #C4552B #9AC42B
monochromatic
#152660 #203A92 #2B4EC4 #5372D9 #859BE4

Accessibility & contrast

On white

7.02
#2B4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2B4EC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4EC4
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4EC4#FFFFFF#000000##FFFFFF
##2B4EC41.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0052C2
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2b4ec4;
/* rgb */ color: rgb(43, 78, 196);
/* oklch */ color: oklch(47.5% 0.188 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d7fd7',
    500: '#2b4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #2b4ec4;
$custom-light: #7d7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4ec4",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 226.275,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4748,
    "c": 0.18847,
    "h": 266.4
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#2B4EC4
secondary
#CEBB7D
accent
#C141E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2B4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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