#2A4787#2A4787

#2A4787 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.1% C 0.112 H 263.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2A4787
RGBrgb(42, 71, 135)
HSLhsl(221, 53%, 35%)
HSVhsv(221, 69%, 53%)
CMYKcmyk(68.9%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.22, 11.66, -39.09)
CIE-LCHlch(31.22, 40.79, 286.61°)
OKLaboklab(41.11% -0.0121 -0.1118)
OKLCHoklch(41.11% 0.112 263.8)
XYZxyz(7.5797, 6.7472, 23.8199)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4787 #876A2A
analogous
#2A7687 #2A4787 #3B2A87
triadic
#2A4787 #872A47 #47872A
tetradic
#2A4787 #872A76 #876A2A #2A873B
square
#2A4787 #872A76 #876A2A #2A873B
split-complementary
#2A4787 #873B2A #76872A
monochromatic
#0D162A #1B2E58 #2A4787 #3960B6 #5E81CD

Accessibility & contrast

On white

8.94
#2A4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4787
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4787#FFFFFF#000000##FFFFFF
##2A47871.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E89
Deuteranopia (green-blind)
#154586
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4787;
/* rgb */ color: rgb(42, 71, 135);
/* oklch */ color: oklch(41.1% 0.112 263.8);
Tailwind
colors: {
  custom: {
    50: '#6f79aa',
    500: '#2a4787',
    950: '#000000',
  },
}
SCSS
$custom: #2a4787;
$custom-light: #6f79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4787",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 221.29,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41107,
    "c": 0.11249,
    "h": 263.8
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#2A4787
secondary
#B3975A
accent
#AF4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4787

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

Preview Lab → · Contrast checker → · Palette generator →

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