#2A5189#2A5189

#2A5189 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.103 H 257.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5189
RGBrgb(42, 81, 137)
HSLhsl(215, 53%, 35%)
HSVhsv(215, 69%, 54%)
CMYKcmyk(69.3%, 40.9%, 0%, 46.3%)
CIE-LABlab(34.36, 5.74, -35.31)
CIE-LCHlch(34.36, 35.77, 279.24°)
OKLaboklab(43.57% -0.022 -0.1006)
OKLCHoklch(43.57% 0.103 257.6)
XYZxyz(8.4110, 8.1824, 24.7982)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5189 #89622A
analogous
#2A8189 #2A5189 #322A89
triadic
#2A5189 #892A51 #51892A
tetradic
#2A5189 #892A81 #89622A #2A8932
square
#2A5189 #892A81 #89622A #2A8932
split-complementary
#2A5189 #89322A #81892A
monochromatic
#0D1A2B #1C355A #2A5189 #386DB8 #5F8DCE

Accessibility & contrast

On white

7.96
#2A5189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A5189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5189
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5189#FFFFFF#000000##FFFFFF
##2A51891.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38568B
Deuteranopia (green-blind)
#294D88
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5189;
/* rgb */ color: rgb(42, 81, 137);
/* oklch */ color: oklch(43.6% 0.103 257.6);
Tailwind
colors: {
  custom: {
    50: '#6f81ac',
    500: '#2a5189',
    950: '#000000',
  },
}
SCSS
$custom: #2a5189;
$custom-light: #6f81ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5189",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 137
  },
  "hsl": {
    "h": 215.368,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43568,
    "c": 0.10297,
    "h": 257.6
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#2A5189
secondary
#B48F5B
accent
#A14BDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5189

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

Preview Lab → · Contrast checker → · Palette generator →

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