#2B5197#2B5197

#2B5197 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.123 H 261.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2B5197
RGBrgb(43, 81, 151)
HSLhsl(219, 56%, 38%)
HSVhsv(219, 72%, 59%)
CMYKcmyk(71.5%, 46.4%, 0%, 40.8%)
CIE-LABlab(35.27, 11.25, -42.38)
CIE-LCHlch(35.27, 43.85, 284.87°)
OKLaboklab(44.56% -0.0183 -0.1213)
OKLCHoklch(44.56% 0.123 261.4)
XYZxyz(9.5226, 8.6318, 30.4364)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5197 #97712B
analogous
#2B8797 #2B5197 #3B2B97
triadic
#2B5197 #972B51 #51972B
tetradic
#2B5197 #972B87 #97712B #2B973B
square
#2B5197 #972B87 #97712B #2B973B
split-complementary
#2B5197 #973B2B #87972B
monochromatic
#101E38 #1D3767 #2B5197 #396BC7 #688ED4

Accessibility & contrast

On white

7.70
#2B5197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2B5197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5197
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5197#FFFFFF#000000##FFFFFF
##2B51971.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E589A
Deuteranopia (green-blind)
#184E96
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b5197;
/* rgb */ color: rgb(43, 81, 151);
/* oklch */ color: oklch(44.6% 0.123 261.4);
Tailwind
colors: {
  custom: {
    50: '#7281b6',
    500: '#2b5197',
    950: '#000000',
  },
}
SCSS
$custom: #2b5197;
$custom-light: #7281b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5197",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 218.889,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44559,
    "c": 0.1227,
    "h": 261.4
  },
  "luminance": 0.08633
}

Semantic roles & 50–950 ramp

primary
#2B5197
secondary
#BB9C63
accent
#AA49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2B5197

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

Preview Lab → · Contrast checker → · Palette generator →

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