#2A4B87#2A4B87

#2A4B87 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.0% C 0.107 H 261.3°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2A4B87
RGBrgb(42, 75, 135)
HSLhsl(219, 53%, 35%)
HSVhsv(219, 69%, 53%)
CMYKcmyk(68.9%, 44.4%, 0%, 47.1%)
CIE-LABlab(32.42, 8.97, -37.17)
CIE-LCHlch(32.42, 38.24, 283.56°)
OKLaboklab(42.03% -0.0162 -0.1061)
OKLCHoklch(42.03% 0.107 261.3)
XYZxyz(7.8425, 7.2729, 23.9075)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B87 #87662A
analogous
#2A7987 #2A4B87 #382A87
triadic
#2A4B87 #872A4B #4B872A
tetradic
#2A4B87 #872A79 #87662A #2A8738
square
#2A4B87 #872A79 #87662A #2A8738
split-complementary
#2A4B87 #87382A #79872A
monochromatic
#0D172A #1B3158 #2A4B87 #3965B6 #5E86CD

Accessibility & contrast

On white

8.55
#2A4B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2A4B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B87
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B87#FFFFFF#000000##FFFFFF
##2A4B871.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5189
Deuteranopia (green-blind)
#1F4886
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4b87;
/* rgb */ color: rgb(42, 75, 135);
/* oklch */ color: oklch(42.0% 0.107 261.3);
Tailwind
colors: {
  custom: {
    50: '#6e7caa',
    500: '#2a4b87',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b87;
$custom-light: #6e7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b87",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 218.71,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42027,
    "c": 0.10738,
    "h": 261.3
  },
  "luminance": 0.07274
}

Semantic roles & 50–950 ramp

primary
#2A4B87
secondary
#B3935A
accent
#A94CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4B87

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

Preview Lab → · Contrast checker → · Palette generator →

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