#2A5098#2A5098

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

Color values

HEX#2A5098
RGBrgb(42, 80, 152)
HSLhsl(219, 57%, 38%)
HSVhsv(219, 72%, 60%)
CMYKcmyk(72.4%, 47.4%, 0%, 40.4%)
CIE-LABlab(34.99, 12.15, -43.42)
CIE-LCHlch(34.99, 45.09, 285.63°)
OKLaboklab(44.36% -0.018 -0.1244)
OKLCHoklch(44.36% 0.126 261.8)
XYZxyz(9.4890, 8.4956, 30.8394)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5098 #98722A
analogous
#2A8798 #2A5098 #3B2A98
triadic
#2A5098 #982A50 #50982A
tetradic
#2A5098 #982A87 #98722A #2A983B
square
#2A5098 #982A87 #98722A #2A983B
split-complementary
#2A5098 #983B2A #87982A
monochromatic
#101E38 #1D3768 #2A5098 #3769C8 #678DD5

Accessibility & contrast

On white

7.78
#2A5098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2A5098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5098
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5098#FFFFFF#000000##FFFFFF
##2A50981.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#124E97
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5098;
/* rgb */ color: rgb(42, 80, 152);
/* oklch */ color: oklch(44.4% 0.126 261.8);
Tailwind
colors: {
  custom: {
    50: '#7280b7',
    500: '#2a5098',
    950: '#000000',
  },
}
SCSS
$custom: #2a5098;
$custom-light: #7280b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5098",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 152
  },
  "hsl": {
    "h": 219.273,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4436,
    "c": 0.12573,
    "h": 261.8
  },
  "luminance": 0.08497
}

Semantic roles & 50–950 ramp

primary
#2A5098
secondary
#BB9D62
accent
#AB48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5098

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

Preview Lab → · Contrast checker → · Palette generator →

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