#2A518F#2A518F

#2A518F is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.112 H 259.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2A518F
RGBrgb(42, 81, 143)
HSLhsl(217, 55%, 36%)
HSVhsv(217, 71%, 56%)
CMYKcmyk(70.6%, 43.4%, 0%, 43.9%)
CIE-LABlab(34.72, 8.03, -38.40)
CIE-LCHlch(34.72, 39.23, 281.81°)
OKLaboklab(43.96% -0.0207 -0.1096)
OKLCHoklch(43.96% 0.112 259.3)
XYZxyz(8.8534, 8.3594, 27.1282)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A518F #8F682A
analogous
#2A848F #2A518F #362A8F
triadic
#2A518F #8F2A51 #518F2A
tetradic
#2A518F #8F2A84 #8F682A #2A8F36
square
#2A518F #8F2A84 #8F682A #2A8F36
split-complementary
#2A518F #8F362A #848F2A
monochromatic
#0E1B30 #1C3660 #2A518F #386CBE #628DD1

Accessibility & contrast

On white

7.86
#2A518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A518F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A518F#FFFFFF#000000##FFFFFF
##2A518F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345791
Deuteranopia (green-blind)
#234D8E
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a518f;
/* rgb */ color: rgb(42, 81, 143);
/* oklch */ color: oklch(44.0% 0.112 259.3);
Tailwind
colors: {
  custom: {
    50: '#7081b0',
    500: '#2a518f',
    950: '#000000',
  },
}
SCSS
$custom: #2a518f;
$custom-light: #7081b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a518f",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 216.832,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43964,
    "c": 0.11158,
    "h": 259.3
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

primary
#2A518F
secondary
#B7955E
accent
#A54ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A518F

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

Preview Lab → · Contrast checker → · Palette generator →

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