#2B518F#2B518F

#2B518F is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.111 H 259.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2B518F
RGBrgb(43, 81, 143)
HSLhsl(217, 54%, 36%)
HSVhsv(217, 70%, 56%)
CMYKcmyk(69.9%, 43.4%, 0%, 43.9%)
CIE-LABlab(34.76, 8.20, -38.33)
CIE-LCHlch(34.76, 39.20, 282.07°)
OKLaboklab(44.01% -0.0199 -0.1094)
OKLCHoklch(44.01% 0.111 259.7)
XYZxyz(8.8948, 8.3807, 27.1301)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B518F #8F692B
analogous
#2B838F #2B518F #372B8F
triadic
#2B518F #8F2B51 #518F2B
tetradic
#2B518F #8F2B83 #8F692B #2B8F37
square
#2B518F #8F2B83 #8F692B #2B8F37
split-complementary
#2B518F #8F372B #838F2B
monochromatic
#0F1C31 #1D3660 #2B518F #396CBE #648DD0

Accessibility & contrast

On white

7.85
#2B518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2B518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B518F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B518F#FFFFFF#000000##FFFFFF
##2B518F1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345791
Deuteranopia (green-blind)
#234D8E
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b518f;
/* rgb */ color: rgb(43, 81, 143);
/* oklch */ color: oklch(44.0% 0.111 259.7);
Tailwind
colors: {
  custom: {
    50: '#7081b0',
    500: '#2b518f',
    950: '#000000',
  },
}
SCSS
$custom: #2b518f;
$custom-light: #7081b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b518f",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 217.2,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4401,
    "c": 0.11122,
    "h": 259.7
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#2B518F
secondary
#B7955F
accent
#A54BDD
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B518F

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

Preview Lab → · Contrast checker → · Palette generator →

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