#2A4E86#2A4E86

#2A4E86 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.102 H 259.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2A4E86
RGBrgb(42, 78, 134)
HSLhsl(217, 52%, 35%)
HSVhsv(217, 69%, 53%)
CMYKcmyk(68.7%, 41.8%, 0%, 47.5%)
CIE-LABlab(33.27, 6.59, -35.21)
CIE-LCHlch(33.27, 35.82, 280.60°)
OKLaboklab(42.66% -0.0196 -0.1003)
OKLCHoklch(42.66% 0.102 259)
XYZxyz(7.9808, 7.6615, 23.6079)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E86 #86622A
analogous
#2A7C86 #2A4E86 #342A86
triadic
#2A4E86 #862A4E #4E862A
tetradic
#2A4E86 #862A7C #86622A #2A8634
square
#2A4E86 #862A7C #86622A #2A8634
split-complementary
#2A4E86 #86342A #7C862A
monochromatic
#0D1829 #1B3357 #2A4E86 #3969B5 #5E89CD

Accessibility & contrast

On white

8.29
#2A4E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A4E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E86
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E86#FFFFFF#000000##FFFFFF
##2A4E861.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345388
Deuteranopia (green-blind)
#264A85
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4e86;
/* rgb */ color: rgb(42, 78, 134);
/* oklch */ color: oklch(42.7% 0.102 259.0);
Tailwind
colors: {
  custom: {
    50: '#6e7fa9',
    500: '#2a4e86',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e86;
$custom-light: #6e7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e86",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 134
  },
  "hsl": {
    "h": 216.522,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42662,
    "c": 0.10222,
    "h": 259
  },
  "luminance": 0.07662
}

Semantic roles & 50–950 ramp

primary
#2A4E86
secondary
#B2905A
accent
#A44CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E86

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

Preview Lab → · Contrast checker → · Palette generator →

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