#2B508D#2B508D

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

Color values

HEX#2B508D
RGBrgb(43, 80, 141)
HSLhsl(217, 53%, 36%)
HSVhsv(217, 70%, 55%)
CMYKcmyk(69.5%, 43.3%, 0%, 44.7%)
CIE-LABlab(34.34, 8.10, -37.78)
CIE-LCHlch(34.34, 38.64, 282.10°)
OKLaboklab(43.64% -0.0193 -0.1078)
OKLCHoklch(43.64% 0.11 259.9)
XYZxyz(8.6709, 8.1731, 26.3147)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B508D #8D682B
analogous
#2B818D #2B508D #372B8D
triadic
#2B508D #8D2B50 #508D2B
tetradic
#2B508D #8D2B81 #8D682B #2B8D37
square
#2B508D #8D2B81 #8D682B #2B8D37
split-complementary
#2B508D #8D372B #818D2B
monochromatic
#0E1B2F #1D355E #2B508D #396BBC #638CCF

Accessibility & contrast

On white

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

On black

2.63
#2B508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2B508D#FFFFFF#000000##FFFFFF
##2B508D1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33568F
Deuteranopia (green-blind)
#234D8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b508d;
/* rgb */ color: rgb(43, 80, 141);
/* oklch */ color: oklch(43.6% 0.110 259.9);
Tailwind
colors: {
  custom: {
    50: '#7080af',
    500: '#2b508d',
    950: '#000000',
  },
}
SCSS
$custom: #2b508d;
$custom-light: #7080af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b508d",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 217.347,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43643,
    "c": 0.10955,
    "h": 259.9
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#2B508D
secondary
#B6955E
accent
#A64BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B508D

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

Preview Lab → · Contrast checker → · Palette generator →

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