#2B508C#2B508C

#2B508C is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.108 H 259.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2B508C
RGBrgb(43, 80, 140)
HSLhsl(217, 53%, 36%)
HSVhsv(217, 69%, 55%)
CMYKcmyk(69.3%, 42.9%, 0%, 45.1%)
CIE-LABlab(34.28, 7.72, -37.27)
CIE-LCHlch(34.28, 38.06, 281.70°)
OKLaboklab(43.58% -0.0195 -0.1063)
OKLCHoklch(43.58% 0.108 259.6)
XYZxyz(8.5969, 8.1435, 25.9246)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B508C #8C672B
analogous
#2B808C #2B508C #362B8C
triadic
#2B508C #8C2B50 #508C2B
tetradic
#2B508C #8C2B80 #8C672B #2B8C36
square
#2B508C #8C2B80 #8C672B #2B8C36
split-complementary
#2B508C #8C362B #808C2B
monochromatic
#0E1A2E #1D355D #2B508C #396BBB #628CCF

Accessibility & contrast

On white

7.99
#2B508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B508C
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B508C#FFFFFF#000000##FFFFFF
##2B508C1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558E
Deuteranopia (green-blind)
#254C8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b508c;
/* rgb */ color: rgb(43, 80, 140);
/* oklch */ color: oklch(43.6% 0.108 259.6);
Tailwind
colors: {
  custom: {
    50: '#7080ae',
    500: '#2b508c',
    950: '#000000',
  },
}
SCSS
$custom: #2b508c;
$custom-light: #7080ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b508c",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 217.113,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43576,
    "c": 0.1081,
    "h": 259.6
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#2B508C
secondary
#B5945E
accent
#A54BDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2B508C

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

Preview Lab → · Contrast checker → · Palette generator →

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