#2B4F8A#2B4F8A

#2B4F8A is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.106 H 259.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2B4F8A
RGBrgb(43, 79, 138)
HSLhsl(217, 52%, 35%)
HSVhsv(217, 69%, 54%)
CMYKcmyk(68.8%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.86, 7.62, -36.72)
CIE-LCHlch(33.86, 37.50, 281.72°)
OKLaboklab(43.21% -0.0189 -0.1047)
OKLCHoklch(43.21% 0.106 259.8)
XYZxyz(8.3780, 7.9397, 25.1308)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F8A #8A662B
analogous
#2B7E8A #2B4F8A #362B8A
triadic
#2B4F8A #8A2B4F #4F8A2B
tetradic
#2B4F8A #8A2B7E #8A662B #2B8A36
square
#2B4F8A #8A2B7E #8A662B #2B8A36
split-complementary
#2B4F8A #8A362B #7E8A2B
monochromatic
#0E1A2D #1C345B #2B4F8A #3A6AB9 #618BCE

Accessibility & contrast

On white

8.11
#2B4F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2B4F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F8A
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F8A#FFFFFF#000000##FFFFFF
##2B4F8A1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548C
Deuteranopia (green-blind)
#254C89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b4f8a;
/* rgb */ color: rgb(43, 79, 138);
/* oklch */ color: oklch(43.2% 0.106 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fac',
    500: '#2b4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f8a;
$custom-light: #6f7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f8a",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 217.263,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4321,
    "c": 0.10643,
    "h": 259.8
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#2B4F8A
secondary
#B4935D
accent
#A54CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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