#2B4DB2#2B4DB2

#2B4DB2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.166 H 265.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2B4DB2
RGBrgb(43, 77, 178)
HSLhsl(225, 61%, 43%)
HSVhsv(225, 76%, 70%)
CMYKcmyk(75.8%, 56.7%, 0%, 30.2%)
CIE-LABlab(36.05, 24.25, -57.26)
CIE-LCHlch(36.05, 62.19, 292.95°)
OKLaboklab(45.76% -0.0118 -0.1652)
OKLCHoklch(45.76% 0.166 265.9)
XYZxyz(11.6832, 9.0344, 43.2389)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4DB2 #B2902B
analogous
#2B90B2 #2B4DB2 #4C2BB2
triadic
#2B4DB2 #B22B4D #4DB22B
tetradic
#2B4DB2 #B22B90 #B2902B #2BB24C
square
#2B4DB2 #B22B90 #B2902B #2BB24C
split-complementary
#2B4DB2 #B24C2B #90B22B
monochromatic
#13224F #1F3881 #2B4DB2 #486BD3 #7992DF

Accessibility & contrast

On white

7.48
#2B4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2B4DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4DB2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4DB2#FFFFFF#000000##FFFFFF
##2B4DB21.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2b4db2;
/* rgb */ color: rgb(43, 77, 178);
/* oklch */ color: oklch(45.8% 0.166 265.9);
Tailwind
colors: {
  custom: {
    50: '#787eca',
    500: '#2b4db2',
    950: '#000000',
  },
}
SCSS
$custom: #2b4db2;
$custom-light: #787eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4db2",
  "rgb": {
    "r": 43,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 224.889,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45764,
    "c": 0.16561,
    "h": 265.9
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#2B4DB2
secondary
#C7B172
accent
#BC44E4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2B4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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