#2A4785#2A4785

#2A4785 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.110 H 263.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2A4785
RGBrgb(42, 71, 133)
HSLhsl(221, 52%, 34%)
HSVhsv(221, 68%, 52%)
CMYKcmyk(68.4%, 46.6%, 0%, 47.8%)
CIE-LABlab(31.09, 10.90, -38.06)
CIE-LCHlch(31.09, 39.59, 285.98°)
OKLaboklab(40.97% -0.0124 -0.1088)
OKLCHoklch(40.97% 0.11 263.5)
XYZxyz(7.4402, 6.6915, 23.0852)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4785 #85682A
analogous
#2A7585 #2A4785 #3B2A85
triadic
#2A4785 #852A47 #47852A
tetradic
#2A4785 #852A75 #85682A #2A853B
square
#2A4785 #852A75 #85682A #2A853B
split-complementary
#2A4785 #853B2A #75852A
monochromatic
#0D1528 #1B2E56 #2A4785 #3960B4 #5D81CC

Accessibility & contrast

On white

8.98
#2A4785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A4785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4785
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4785#FFFFFF#000000##FFFFFF
##2A47851.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E87
Deuteranopia (green-blind)
#184584
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4785;
/* rgb */ color: rgb(42, 71, 133);
/* oklch */ color: oklch(41.0% 0.110 263.5);
Tailwind
colors: {
  custom: {
    50: '#6e79a9',
    500: '#2a4785',
    950: '#000000',
  },
}
SCSS
$custom: #2a4785;
$custom-light: #6e79a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4785",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 133
  },
  "hsl": {
    "h": 220.879,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40965,
    "c": 0.10953,
    "h": 263.5
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#2A4785
secondary
#B29559
accent
#AE4CDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4785

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

Preview Lab → · Contrast checker → · Palette generator →

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