#2B4F88#2B4F88

#2B4F88 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.104 H 259.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2B4F88
RGBrgb(43, 79, 136)
HSLhsl(217, 52%, 35%)
HSVhsv(217, 68%, 53%)
CMYKcmyk(68.4%, 41.9%, 0%, 46.7%)
CIE-LABlab(33.74, 6.86, -35.69)
CIE-LCHlch(33.74, 36.34, 280.88°)
OKLaboklab(43.08% -0.0193 -0.1017)
OKLCHoklch(43.08% 0.104 259.2)
XYZxyz(8.2346, 7.8823, 24.3753)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F88 #88642B
analogous
#2B7D88 #2B4F88 #352B88
triadic
#2B4F88 #882B4F #4F882B
tetradic
#2B4F88 #882B7D #88642B #2B8835
square
#2B4F88 #882B7D #88642B #2B8835
split-complementary
#2B4F88 #88352B #7D882B
monochromatic
#0E192B #1C345A #2B4F88 #3A6AB6 #618ACD

Accessibility & contrast

On white

8.15
#2B4F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2B4F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F88
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F88#FFFFFF#000000##FFFFFF
##2B4F881.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35548A
Deuteranopia (green-blind)
#274B87
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b4f88;
/* rgb */ color: rgb(43, 79, 136);
/* oklch */ color: oklch(43.1% 0.104 259.2);
Tailwind
colors: {
  custom: {
    50: '#6f7fab',
    500: '#2b4f88',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f88;
$custom-light: #6f7fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f88",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 136
  },
  "hsl": {
    "h": 216.774,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43077,
    "c": 0.10352,
    "h": 259.2
  },
  "luminance": 0.07883
}

Semantic roles & 50–950 ramp

primary
#2B4F88
secondary
#B3915C
accent
#A44CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B4F88

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

Preview Lab → · Contrast checker → · Palette generator →

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