#2A518C#2A518C

#2A518C is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.107 H 258.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2A518C
RGBrgb(42, 81, 140)
HSLhsl(216, 54%, 36%)
HSVhsv(216, 70%, 55%)
CMYKcmyk(70%, 42.1%, 0%, 45.1%)
CIE-LABlab(34.54, 6.89, -36.86)
CIE-LCHlch(34.54, 37.50, 280.58°)
OKLaboklab(43.76% -0.0213 -0.1051)
OKLCHoklch(43.76% 0.107 258.5)
XYZxyz(8.6292, 8.2697, 25.9473)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A518C #8C652A
analogous
#2A828C #2A518C #342A8C
triadic
#2A518C #8C2A51 #518C2A
tetradic
#2A518C #8C2A82 #8C652A #2A8C34
square
#2A518C #8C2A82 #8C652A #2A8C34
split-complementary
#2A518C #8C342A #828C2A
monochromatic
#0E1B2E #1C365D #2A518C #386CBB #618DD0

Accessibility & contrast

On white

7.91
#2A518C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2A518C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A518C
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A518C#FFFFFF#000000##FFFFFF
##2A518C1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a518c;
/* rgb */ color: rgb(42, 81, 140);
/* oklch */ color: oklch(43.8% 0.107 258.5);
Tailwind
colors: {
  custom: {
    50: '#6f81ae',
    500: '#2a518c',
    950: '#000000',
  },
}
SCSS
$custom: #2a518c;
$custom-light: #6f81ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a518c",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 140
  },
  "hsl": {
    "h": 216.122,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43764,
    "c": 0.10728,
    "h": 258.5
  },
  "luminance": 0.08271
}

Semantic roles & 50–950 ramp

primary
#2A518C
secondary
#B5925C
accent
#A34BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A518C

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

Preview Lab → · Contrast checker → · Palette generator →

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