#2B5298#2B5298

#2B5298 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.9% C 0.123 H 261.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#2B5298
RGBrgb(43, 82, 152)
HSLhsl(219, 56%, 38%)
HSVhsv(219, 72%, 60%)
CMYKcmyk(71.7%, 46.1%, 0%, 40.4%)
CIE-LABlab(35.62, 10.97, -42.41)
CIE-LCHlch(35.62, 43.81, 284.50°)
OKLaboklab(44.86% -0.0191 -0.1214)
OKLCHoklch(44.86% 0.123 261.1)
XYZxyz(9.6790, 8.8142, 30.8909)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5298 #98712B
analogous
#2B8898 #2B5298 #3A2B98
triadic
#2B5298 #982B52 #52982B
tetradic
#2B5298 #982B88 #98712B #2B983A
square
#2B5298 #982B88 #98712B #2B983A
split-complementary
#2B5298 #983A2B #88982B
monochromatic
#101F39 #1E3868 #2B5298 #396CC7 #698FD5

Accessibility & contrast

On white

7.60
#2B5298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2B5298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5298
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5298#FFFFFF#000000##FFFFFF
##2B52981.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599B
Deuteranopia (green-blind)
#194F97
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b5298;
/* rgb */ color: rgb(43, 82, 152);
/* oklch */ color: oklch(44.9% 0.123 261.1);
Tailwind
colors: {
  custom: {
    50: '#7282b7',
    500: '#2b5298',
    950: '#000000',
  },
}
SCSS
$custom: #2b5298;
$custom-light: #7282b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5298",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 218.532,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44856,
    "c": 0.12289,
    "h": 261.1
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#2B5298
secondary
#BB9C64
accent
#A949DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2B5298

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

Preview Lab → · Contrast checker → · Palette generator →

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