#2B508E#2B508E

#2B508E is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.111 H 260.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2B508E
RGBrgb(43, 80, 142)
HSLhsl(218, 54%, 36%)
HSVhsv(218, 70%, 56%)
CMYKcmyk(69.7%, 43.7%, 0%, 44.3%)
CIE-LABlab(34.40, 8.48, -38.30)
CIE-LCHlch(34.40, 39.22, 282.48°)
OKLaboklab(43.71% -0.0191 -0.1093)
OKLCHoklch(43.71% 0.111 260.1)
XYZxyz(8.7457, 8.2030, 26.7084)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B508E #8E692B
analogous
#2B828E #2B508E #382B8E
triadic
#2B508E #8E2B50 #508E2B
tetradic
#2B508E #8E2B82 #8E692B #2B8E38
square
#2B508E #8E2B82 #8E692B #2B8E38
split-complementary
#2B508E #8E382B #828E2B
monochromatic
#0F1B30 #1D365F #2B508E #396ABD #638CD0

Accessibility & contrast

On white

7.95
#2B508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B508E
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B508E#FFFFFF#000000##FFFFFF
##2B508E1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#224D8D
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b508e;
/* rgb */ color: rgb(43, 80, 142);
/* oklch */ color: oklch(43.7% 0.111 260.1);
Tailwind
colors: {
  custom: {
    50: '#7080af',
    500: '#2b508e',
    950: '#000000',
  },
}
SCSS
$custom: #2b508e;
$custom-light: #7080af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b508e",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 217.576,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4371,
    "c": 0.111,
    "h": 260.1
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B508E

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

Preview Lab → · Contrast checker → · Palette generator →

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