#2B4774#2B4774

#2B4774 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.084 H 259.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2B4774
RGBrgb(43, 71, 116)
HSLhsl(217, 46%, 31%)
HSVhsv(217, 63%, 45%)
CMYKcmyk(62.9%, 38.8%, 0%, 54.5%)
CIE-LABlab(30.11, 4.68, -29.02)
CIE-LCHlch(30.11, 29.40, 279.15°)
OKLaboklab(39.88% -0.0153 -0.0823)
OKLCHoklch(39.88% 0.084 259.5)
XYZxyz(6.4008, 6.2805, 17.3945)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4774 #74582B
analogous
#2B6B74 #2B4774 #332B74
triadic
#2B4774 #742B47 #47742B
tetradic
#2B4774 #742B6B #74582B #2B7433
square
#2B4774 #742B6B #74582B #2B7433
split-complementary
#2B4774 #74332B #6B742B
monochromatic
#0A101B #1A2C47 #2B4774 #3C62A1 #5880C1

Accessibility & contrast

On white

9.31
#2B4774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B4774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4774
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4774#FFFFFF#000000##FFFFFF
##2B47741.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344B76
Deuteranopia (green-blind)
#2A4473
Tritanopia (blue-blind)
#005158
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b4774;
/* rgb */ color: rgb(43, 71, 116);
/* oklch */ color: oklch(39.9% 0.084 259.5);
Tailwind
colors: {
  custom: {
    50: '#6b799c',
    500: '#2b4774',
    950: '#000000',
  },
}
SCSS
$custom: #2b4774;
$custom-light: #6b799c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4774",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 116
  },
  "hsl": {
    "h": 216.986,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39882,
    "c": 0.08369,
    "h": 259.5
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#2B4774
secondary
#A68755
accent
#A352D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4774

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

Preview Lab → · Contrast checker → · Palette generator →

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