#2B4CAB#2B4CAB

#2B4CAB is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.157 H 265.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2B4CAB
RGBrgb(43, 76, 171)
HSLhsl(225, 60%, 42%)
HSVhsv(225, 75%, 67%)
CMYKcmyk(74.9%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.25, 22.25, -54.42)
CIE-LCHlch(35.25, 58.79, 292.24°)
OKLaboklab(44.99% -0.0115 -0.1568)
OKLCHoklch(44.99% 0.157 265.8)
XYZxyz(10.9288, 8.6216, 39.6083)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4CAB #AB8A2B
analogous
#2B8CAB #2B4CAB #4A2BAB
triadic
#2B4CAB #AB2B4C #4CAB2B
tetradic
#2B4CAB #AB2B8C #AB8A2B #2BAB4A
square
#2B4CAB #AB2B8C #AB8A2B #2BAB4A
split-complementary
#2B4CAB #AB4A2B #8CAB2B
monochromatic
#122149 #1F367A #2B4CAB #4368D0 #748FDC

Accessibility & contrast

On white

7.71
#2B4CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2B4CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4CAB
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4CAB#FFFFFF#000000##FFFFFF
##2B4CAB1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b4cab;
/* rgb */ color: rgb(43, 76, 171);
/* oklch */ color: oklch(45.0% 0.157 265.8);
Tailwind
colors: {
  custom: {
    50: '#777dc5',
    500: '#2b4cab',
    950: '#000000',
  },
}
SCSS
$custom: #2b4cab;
$custom-light: #777dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4cab",
  "rgb": {
    "r": 43,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 224.531,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44989,
    "c": 0.15725,
    "h": 265.8
  },
  "luminance": 0.08623
}

Semantic roles & 50–950 ramp

primary
#2B4CAB
secondary
#C4AE6E
accent
#BA45E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2B4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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