#2A518B#2A518B

#2A518B is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.106 H 258.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2A518B
RGBrgb(42, 81, 139)
HSLhsl(216, 54%, 35%)
HSVhsv(216, 70%, 55%)
CMYKcmyk(69.8%, 41.7%, 0%, 45.5%)
CIE-LABlab(34.48, 6.50, -36.35)
CIE-LCHlch(34.48, 36.92, 280.15°)
OKLaboklab(43.7% -0.0216 -0.1036)
OKLCHoklch(43.7% 0.106 258.2)
XYZxyz(8.5558, 8.2403, 25.5607)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A518B #8B642A
analogous
#2A818B #2A518B #332A8B
triadic
#2A518B #8B2A51 #518B2A
tetradic
#2A518B #8B2A81 #8B642A #2A8B33
square
#2A518B #8B2A81 #8B642A #2A8B33
split-complementary
#2A518B #8B332A #818B2A
monochromatic
#0E1A2D #1C365C #2A518B #386CBA #608DCF

Accessibility & contrast

On white

7.93
#2A518B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A518B
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A518B#FFFFFF#000000##FFFFFF
##2A518B1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568D
Deuteranopia (green-blind)
#274D8A
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a518b;
/* rgb */ color: rgb(42, 81, 139);
/* oklch */ color: oklch(43.7% 0.106 258.2);
Tailwind
colors: {
  custom: {
    50: '#6f81ad',
    500: '#2a518b',
    950: '#000000',
  },
}
SCSS
$custom: #2a518b;
$custom-light: #6f81ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a518b",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 139
  },
  "hsl": {
    "h": 215.876,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43698,
    "c": 0.10584,
    "h": 258.2
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#2A518B
secondary
#B5915C
accent
#A24BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A518B

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

Preview Lab → · Contrast checker → · Palette generator →

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