#2B5188#2B5188

#2B5188 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.101 H 257.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2B5188
RGBrgb(43, 81, 136)
HSLhsl(215, 52%, 35%)
HSVhsv(215, 68%, 53%)
CMYKcmyk(68.4%, 40.4%, 0%, 46.7%)
CIE-LABlab(34.35, 5.54, -34.72)
CIE-LCHlch(34.35, 35.16, 279.07°)
OKLaboklab(43.55% -0.0215 -0.0988)
OKLCHoklch(43.55% 0.101 257.7)
XYZxyz(8.3810, 8.1752, 24.4241)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5188 #88622B
analogous
#2B7F88 #2B5188 #342B88
triadic
#2B5188 #882B51 #51882B
tetradic
#2B5188 #882B7F #88622B #2B8834
square
#2B5188 #882B7F #88622B #2B8834
split-complementary
#2B5188 #88342B #7F882B
monochromatic
#0E1A2B #1C355A #2B5188 #3A6DB6 #618DCD

Accessibility & contrast

On white

7.97
#2B5188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2B5188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5188
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5188#FFFFFF#000000##FFFFFF
##2B51881.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38558A
Deuteranopia (green-blind)
#2A4D87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b5188;
/* rgb */ color: rgb(43, 81, 136);
/* oklch */ color: oklch(43.5% 0.101 257.7);
Tailwind
colors: {
  custom: {
    50: '#6f81ab',
    500: '#2b5188',
    950: '#000000',
  },
}
SCSS
$custom: #2b5188;
$custom-light: #6f81ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5188",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 136
  },
  "hsl": {
    "h": 215.484,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43549,
    "c": 0.10113,
    "h": 257.7
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#2B5188
secondary
#B38F5C
accent
#A14CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B5188

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

Preview Lab → · Contrast checker → · Palette generator →

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