#2A5097#2A5097

#2A5097 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.3% C 0.124 H 261.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#2A5097
RGBrgb(42, 80, 151)
HSLhsl(219, 56%, 38%)
HSVhsv(219, 72%, 59%)
CMYKcmyk(72.2%, 47%, 0%, 40.8%)
CIE-LABlab(34.93, 11.76, -42.92)
CIE-LCHlch(34.93, 44.51, 285.33°)
OKLaboklab(44.29% -0.0182 -0.123)
OKLCHoklch(44.29% 0.124 261.6)
XYZxyz(9.4074, 8.4629, 30.4099)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5097 #97712A
analogous
#2A8697 #2A5097 #3B2A97
triadic
#2A5097 #972A50 #50972A
tetradic
#2A5097 #972A86 #97712A #2A973B
square
#2A5097 #972A86 #97712A #2A973B
split-complementary
#2A5097 #973B2A #86972A
monochromatic
#0F1D37 #1D3767 #2A5097 #3769C7 #678DD5

Accessibility & contrast

On white

7.80
#2A5097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2A5097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5097
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5097#FFFFFF#000000##FFFFFF
##2A50971.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#144D96
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5097;
/* rgb */ color: rgb(42, 80, 151);
/* oklch */ color: oklch(44.3% 0.124 261.6);
Tailwind
colors: {
  custom: {
    50: '#7280b6',
    500: '#2a5097',
    950: '#000000',
  },
}
SCSS
$custom: #2a5097;
$custom-light: #7280b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5097",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 219.083,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44288,
    "c": 0.1243,
    "h": 261.6
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5097

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

Preview Lab → · Contrast checker → · Palette generator →

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