#2B4DC4#2B4DC4

#2B4DC4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.3% C 0.190 H 266.6°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2B4DC4
RGBrgb(43, 77, 196)
HSLhsl(227, 64%, 47%)
HSVhsv(227, 78%, 77%)
CMYKcmyk(78.1%, 60.7%, 0%, 23.1%)
CIE-LABlab(37.49, 31.02, -65.49)
CIE-LCHlch(37.49, 72.46, 295.35°)
OKLaboklab(47.29% -0.0113 -0.1893)
OKLCHoklch(47.29% 0.19 266.6)
XYZxyz(13.6105, 9.8053, 53.3891)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4DC4 #C4A22B
analogous
#2B9AC4 #2B4DC4 #562BC4
triadic
#2B4DC4 #C42B4D #4DC42B
tetradic
#2B4DC4 #C42B9A #C4A22B #2BC456
square
#2B4DC4 #C42B9A #C4A22B #2BC456
split-complementary
#2B4DC4 #C4562B #9AC42B
monochromatic
#152660 #203992 #2B4DC4 #5371D9 #859AE4

Accessibility & contrast

On white

7.09
#2B4DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2B4DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4DC4
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4DC4#FFFFFF#000000##FFFFFF
##2B4DC41.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b4dc4;
/* rgb */ color: rgb(43, 77, 196);
/* oklch */ color: oklch(47.3% 0.190 266.6);
Tailwind
colors: {
  custom: {
    50: '#7d7ed7',
    500: '#2b4dc4',
    950: '#000000',
  },
}
SCSS
$custom: #2b4dc4;
$custom-light: #7d7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4dc4",
  "rgb": {
    "r": 43,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 226.667,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4729,
    "c": 0.18966,
    "h": 266.6
  },
  "luminance": 0.09807
}

Semantic roles & 50–950 ramp

primary
#2B4DC4
secondary
#CEBC7D
accent
#C241E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2B4DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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