#2A518E#2A518E

#2A518E is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.110 H 259.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2A518E
RGBrgb(42, 81, 142)
HSLhsl(217, 54%, 36%)
HSVhsv(217, 70%, 56%)
CMYKcmyk(70.4%, 43%, 0%, 44.3%)
CIE-LABlab(34.66, 7.65, -37.89)
CIE-LCHlch(34.66, 38.65, 281.41°)
OKLaboklab(43.9% -0.0209 -0.1081)
OKLCHoklch(43.9% 0.11 259.1)
XYZxyz(8.7780, 8.3292, 26.7310)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A518E #8E672A
analogous
#2A838E #2A518E #352A8E
triadic
#2A518E #8E2A51 #518E2A
tetradic
#2A518E #8E2A83 #8E672A #2A8E35
square
#2A518E #8E2A83 #8E672A #2A8E35
split-complementary
#2A518E #8E352A #838E2A
monochromatic
#0E1B30 #1C365F #2A518E #386CBD #628DD1

Accessibility & contrast

On white

7.88
#2A518E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A518E
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A518E#FFFFFF#000000##FFFFFF
##2A518E1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345790
Deuteranopia (green-blind)
#244D8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a518e;
/* rgb */ color: rgb(42, 81, 142);
/* oklch */ color: oklch(43.9% 0.110 259.1);
Tailwind
colors: {
  custom: {
    50: '#7081af',
    500: '#2a518e',
    950: '#000000',
  },
}
SCSS
$custom: #2a518e;
$custom-light: #7081af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a518e",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 216.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43897,
    "c": 0.11015,
    "h": 259.1
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#2A518E
secondary
#B6945D
accent
#A44ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A518E

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

Preview Lab → · Contrast checker → · Palette generator →

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