#2A5099#2A5099

#2A5099 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.127 H 261.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2A5099
RGBrgb(42, 80, 153)
HSLhsl(219, 57%, 38%)
HSVhsv(219, 73%, 60%)
CMYKcmyk(72.5%, 47.7%, 0%, 40%)
CIE-LABlab(35.06, 12.53, -43.92)
CIE-LCHlch(35.06, 45.67, 285.93°)
OKLaboklab(44.43% -0.0178 -0.1259)
OKLCHoklch(44.43% 0.127 261.9)
XYZxyz(9.5712, 8.5285, 31.2726)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5099 #99732A
analogous
#2A8799 #2A5099 #3B2A99
triadic
#2A5099 #992A50 #50992A
tetradic
#2A5099 #992A87 #99732A #2A993B
square
#2A5099 #992A87 #99732A #2A993B
split-complementary
#2A5099 #993B2A #87992A
monochromatic
#101E39 #1D3769 #2A5099 #3869C8 #688DD6

Accessibility & contrast

On white

7.76
#2A5099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5099
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5099#FFFFFF#000000##FFFFFF
##2A50991.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589C
Deuteranopia (green-blind)
#0F4E98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5099;
/* rgb */ color: rgb(42, 80, 153);
/* oklch */ color: oklch(44.4% 0.127 261.9);
Tailwind
colors: {
  custom: {
    50: '#7280b7',
    500: '#2a5099',
    950: '#000000',
  },
}
SCSS
$custom: #2a5099;
$custom-light: #7280b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5099",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 153
  },
  "hsl": {
    "h": 219.459,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.12716,
    "h": 261.9
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#2A5099
secondary
#BC9D63
accent
#AC48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5099

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

Preview Lab → · Contrast checker → · Palette generator →

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