#2A4786#2A4786

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

Color values

HEX#2A4786
RGBrgb(42, 71, 134)
HSLhsl(221, 52%, 35%)
HSVhsv(221, 69%, 53%)
CMYKcmyk(68.7%, 47%, 0%, 47.5%)
CIE-LABlab(31.16, 11.28, -38.58)
CIE-LCHlch(31.16, 40.19, 286.30°)
OKLaboklab(41.04% -0.0123 -0.1103)
OKLCHoklch(41.04% 0.111 263.6)
XYZxyz(7.5096, 6.7192, 23.4508)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4786 #86692A
analogous
#2A7586 #2A4786 #3B2A86
triadic
#2A4786 #862A47 #47862A
tetradic
#2A4786 #862A75 #86692A #2A863B
square
#2A4786 #862A75 #86692A #2A863B
split-complementary
#2A4786 #863B2A #75862A
monochromatic
#0D1629 #1B2E57 #2A4786 #3960B5 #5E81CD

Accessibility & contrast

On white

8.96
#2A4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4786
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4786#FFFFFF#000000##FFFFFF
##2A47861.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E88
Deuteranopia (green-blind)
#174585
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4786;
/* rgb */ color: rgb(42, 71, 134);
/* oklch */ color: oklch(41.0% 0.111 263.6);
Tailwind
colors: {
  custom: {
    50: '#6e79aa',
    500: '#2a4786',
    950: '#000000',
  },
}
SCSS
$custom: #2a4786;
$custom-light: #6e79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4786",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 221.087,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41036,
    "c": 0.11101,
    "h": 263.6
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#2A4786
secondary
#B2965A
accent
#AE4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4786

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

Preview Lab → · Contrast checker → · Palette generator →

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