#2A4986#2A4986

#2A4986 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.5% C 0.108 H 262.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2A4986
RGBrgb(42, 73, 134)
HSLhsl(220, 52%, 35%)
HSVhsv(220, 69%, 53%)
CMYKcmyk(68.7%, 45.5%, 0%, 47.5%)
CIE-LABlab(31.76, 9.93, -37.62)
CIE-LCHlch(31.76, 38.91, 284.78°)
OKLaboklab(41.5% -0.0143 -0.1075)
OKLCHoklch(41.5% 0.108 262.4)
XYZxyz(7.6389, 6.9778, 23.4939)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4986 #86672A
analogous
#2A7786 #2A4986 #392A86
triadic
#2A4986 #862A49 #49862A
tetradic
#2A4986 #862A77 #86672A #2A8639
square
#2A4986 #862A77 #86672A #2A8639
split-complementary
#2A4986 #86392A #77862A
monochromatic
#0D1629 #1B3057 #2A4986 #3962B5 #5E83CD

Accessibility & contrast

On white

8.77
#2A4986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2A4986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4986
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4986#FFFFFF#000000##FFFFFF
##2A49861.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4F88
Deuteranopia (green-blind)
#1C4785
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a4986;
/* rgb */ color: rgb(42, 73, 134);
/* oklch */ color: oklch(41.5% 0.108 262.4);
Tailwind
colors: {
  custom: {
    50: '#6e7baa',
    500: '#2a4986',
    950: '#000000',
  },
}
SCSS
$custom: #2a4986;
$custom-light: #6e7baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4986",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 134
  },
  "hsl": {
    "h": 219.783,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41495,
    "c": 0.10844,
    "h": 262.4
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#2A4986
secondary
#B2945A
accent
#AB4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4986

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

Preview Lab → · Contrast checker → · Palette generator →

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