#2B509E#2B509E

#2B509E is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.134 H 263.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2B509E
RGBrgb(43, 80, 158)
HSLhsl(221, 57%, 39%)
HSVhsv(221, 73%, 62%)
CMYKcmyk(72.8%, 49.4%, 0%, 38%)
CIE-LABlab(35.44, 14.60, -46.33)
CIE-LCHlch(35.44, 48.57, 287.50°)
OKLaboklab(44.84% -0.0163 -0.133)
OKLCHoklch(44.84% 0.134 263)
XYZxyz(10.0343, 8.7185, 33.4951)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B509E #9E792B
analogous
#2B8A9E #2B509E #402B9E
triadic
#2B509E #9E2B50 #509E2B
tetradic
#2B509E #9E2B8A #9E792B #2B9E40
square
#2B509E #9E2B8A #9E792B #2B9E40
split-complementary
#2B509E #9E402B #8A9E2B
monochromatic
#111F3E #1E386E #2B509E #3C6ACA #6C8FD7

Accessibility & contrast

On white

7.65
#2B509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2B509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B509E
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B509E#FFFFFF#000000##FFFFFF
##2B509E1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A1
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b509e;
/* rgb */ color: rgb(43, 80, 158);
/* oklch */ color: oklch(44.8% 0.134 263.0);
Tailwind
colors: {
  custom: {
    50: '#7480bb',
    500: '#2b509e',
    950: '#000000',
  },
}
SCSS
$custom: #2b509e;
$custom-light: #7480bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b509e",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 220.696,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44839,
    "c": 0.13395,
    "h": 263
  },
  "luminance": 0.0872
}

Semantic roles & 50–950 ramp

primary
#2B509E
secondary
#BEA267
accent
#AF47E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2B509E

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

Preview Lab → · Contrast checker → · Palette generator →

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