#2A5188#2A5188

#2A5188 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.102 H 257.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2A5188
RGBrgb(42, 81, 136)
HSLhsl(215, 53%, 35%)
HSVhsv(215, 69%, 53%)
CMYKcmyk(69.1%, 40.4%, 0%, 46.7%)
CIE-LABlab(34.30, 5.37, -34.79)
CIE-LCHlch(34.30, 35.20, 278.77°)
OKLaboklab(43.5% -0.0223 -0.0991)
OKLCHoklch(43.5% 0.102 257.3)
XYZxyz(8.3396, 8.1538, 24.4221)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5188 #88612A
analogous
#2A8088 #2A5188 #322A88
triadic
#2A5188 #882A51 #51882A
tetradic
#2A5188 #882A80 #88612A #2A8832
square
#2A5188 #882A80 #88612A #2A8832
split-complementary
#2A5188 #88322A #80882A
monochromatic
#0D192A #1C3559 #2A5188 #386DB7 #5F8DCE

Accessibility & contrast

On white

7.98
#2A5188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A5188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5188
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5188#FFFFFF#000000##FFFFFF
##2A51881.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38558A
Deuteranopia (green-blind)
#2A4D87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5188;
/* rgb */ color: rgb(42, 81, 136);
/* oklch */ color: oklch(43.5% 0.102 257.3);
Tailwind
colors: {
  custom: {
    50: '#6f81ab',
    500: '#2a5188',
    950: '#000000',
  },
}
SCSS
$custom: #2a5188;
$custom-light: #6f81ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5188",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 136
  },
  "hsl": {
    "h": 215.106,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43503,
    "c": 0.10154,
    "h": 257.3
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#2A5188
secondary
#B38E5B
accent
#A04CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5188

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

Preview Lab → · Contrast checker → · Palette generator →

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