#2A4C87#2A4C87

#2A4C87 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.106 H 260.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2A4C87
RGBrgb(42, 76, 135)
HSLhsl(218, 53%, 35%)
HSVhsv(218, 69%, 53%)
CMYKcmyk(68.9%, 43.7%, 0%, 47.1%)
CIE-LABlab(32.72, 8.30, -36.69)
CIE-LCHlch(32.72, 37.62, 282.74°)
OKLaboklab(42.26% -0.0173 -0.1047)
OKLCHoklch(42.26% 0.106 260.6)
XYZxyz(7.9109, 7.4096, 23.9303)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C87 #87652A
analogous
#2A7A87 #2A4C87 #372A87
triadic
#2A4C87 #872A4C #4C872A
tetradic
#2A4C87 #872A7A #87652A #2A8737
square
#2A4C87 #872A7A #87652A #2A8737
split-complementary
#2A4C87 #87372A #7A872A
monochromatic
#0D172A #1B3258 #2A4C87 #3966B6 #5E87CD

Accessibility & contrast

On white

8.46
#2A4C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2A4C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C87
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C87#FFFFFF#000000##FFFFFF
##2A4C871.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305289
Deuteranopia (green-blind)
#214986
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4c87;
/* rgb */ color: rgb(42, 76, 135);
/* oklch */ color: oklch(42.3% 0.106 260.6);
Tailwind
colors: {
  custom: {
    50: '#6e7daa',
    500: '#2a4c87',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c87;
$custom-light: #6e7daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c87",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 135
  },
  "hsl": {
    "h": 218.065,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.10613,
    "h": 260.6
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#2A4C87
secondary
#B3925A
accent
#A74CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4C87

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

Preview Lab → · Contrast checker → · Palette generator →

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