#2A4D87#2A4D87

#2A4D87 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.105 H 259.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2A4D87
RGBrgb(42, 77, 135)
HSLhsl(217, 53%, 35%)
HSVhsv(217, 69%, 53%)
CMYKcmyk(68.9%, 43%, 0%, 47.1%)
CIE-LABlab(33.02, 7.63, -36.21)
CIE-LCHlch(33.02, 37.01, 281.90°)
OKLaboklab(42.49% -0.0183 -0.1033)
OKLCHoklch(42.49% 0.105 259.9)
XYZxyz(7.9803, 7.5485, 23.9534)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D87 #87642A
analogous
#2A7C87 #2A4D87 #352A87
triadic
#2A4D87 #872A4D #4D872A
tetradic
#2A4D87 #872A7C #87642A #2A8735
square
#2A4D87 #872A7C #87642A #2A8735
split-complementary
#2A4D87 #87352A #7C872A
monochromatic
#0D182A #1B3258 #2A4D87 #3968B6 #5E88CD

Accessibility & contrast

On white

8.37
#2A4D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A4D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D87
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D87#FFFFFF#000000##FFFFFF
##2A4D871.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325289
Deuteranopia (green-blind)
#234A86
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4d87;
/* rgb */ color: rgb(42, 77, 135);
/* oklch */ color: oklch(42.5% 0.105 259.9);
Tailwind
colors: {
  custom: {
    50: '#6e7eaa',
    500: '#2a4d87',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d87;
$custom-light: #6e7eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d87",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 135
  },
  "hsl": {
    "h": 217.419,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42494,
    "c": 0.1049,
    "h": 259.9
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#2A4D87
secondary
#B3915A
accent
#A64CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4D87

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

Preview Lab → · Contrast checker → · Palette generator →

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