#2B4E7F#2B4E7F

#2B4E7F is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.092 H 257.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2B4E7F
RGBrgb(43, 78, 127)
HSLhsl(215, 49%, 33%)
HSVhsv(215, 66%, 50%)
CMYKcmyk(66.1%, 38.6%, 0%, 50.2%)
CIE-LABlab(32.91, 4.13, -31.46)
CIE-LCHlch(32.91, 31.73, 277.48°)
OKLaboklab(42.26% -0.0204 -0.0893)
OKLCHoklch(42.26% 0.092 257.1)
XYZxyz(7.5500, 7.4940, 21.1232)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E7F #7F5C2B
analogous
#2B787F #2B4E7F #322B7F
triadic
#2B4E7F #7F2B4E #4E7F2B
tetradic
#2B4E7F #7F2B78 #7F5C2B #2B7F32
square
#2B4E7F #7F2B78 #7F5C2B #2B7F32
split-complementary
#2B4E7F #7F322B #787F2B
monochromatic
#0C1624 #1C3251 #2B4E7F #3A6AAD #5C89C8

Accessibility & contrast

On white

8.40
#2B4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2B4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4E7F
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4E7F#FFFFFF#000000##FFFFFF
##2B4E7F1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2D4A7E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b4e7f;
/* rgb */ color: rgb(43, 78, 127);
/* oklch */ color: oklch(42.3% 0.092 257.1);
Tailwind
colors: {
  custom: {
    50: '#6d7fa4',
    500: '#2b4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e7f;
$custom-light: #6d7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e7f",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 215,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42261,
    "c": 0.09164,
    "h": 257.1
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

primary
#2B4E7F
secondary
#AE8A58
accent
#9F4FD9
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2B4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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