#2B509A#2B509A

#2B509A is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.5% C 0.128 H 262.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2B509A
RGBrgb(43, 80, 154)
HSLhsl(220, 56%, 39%)
HSVhsv(220, 72%, 60%)
CMYKcmyk(72.1%, 48.1%, 0%, 39.6%)
CIE-LABlab(35.17, 13.07, -44.35)
CIE-LCHlch(35.17, 46.23, 286.42°)
OKLaboklab(44.55% -0.0169 -0.1271)
OKLCHoklch(44.55% 0.128 262.4)
XYZxyz(9.6956, 8.5830, 31.7113)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B509A #9A752B
analogous
#2B879A #2B509A #3D2B9A
triadic
#2B509A #9A2B50 #509A2B
tetradic
#2B509A #9A2B87 #9A752B #2B9A3D
square
#2B509A #9A2B87 #9A752B #2B9A3D
split-complementary
#2B509A #9A3D2B #879A2B
monochromatic
#101E3A #1E376A #2B509A #3A69C8 #6A8ED5

Accessibility & contrast

On white

7.73
#2B509A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2B509A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B509A
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B509A#FFFFFF#000000##FFFFFF
##2B509A1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29589D
Deuteranopia (green-blind)
#0E4E98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b509a;
/* rgb */ color: rgb(43, 80, 154);
/* oklch */ color: oklch(44.5% 0.128 262.4);
Tailwind
colors: {
  custom: {
    50: '#7380b8',
    500: '#2b509a',
    950: '#000000',
  },
}
SCSS
$custom: #2b509a;
$custom-light: #7380b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b509a",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 154
  },
  "hsl": {
    "h": 220,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44548,
    "c": 0.12825,
    "h": 262.4
  },
  "luminance": 0.08584
}

Semantic roles & 50–950 ramp

primary
#2B509A
secondary
#BC9F65
accent
#AD48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2B509A

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

Preview Lab → · Contrast checker → · Palette generator →

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