#2A4E85#2A4E85

#2A4E85 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.101 H 258.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2A4E85
RGBrgb(42, 78, 133)
HSLhsl(216, 52%, 34%)
HSVhsv(216, 68%, 52%)
CMYKcmyk(68.4%, 41.4%, 0%, 47.8%)
CIE-LABlab(33.21, 6.21, -34.69)
CIE-LCHlch(33.21, 35.24, 280.15°)
OKLaboklab(42.6% -0.0198 -0.0988)
OKLCHoklch(42.6% 0.101 258.7)
XYZxyz(7.9114, 7.6337, 23.2423)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E85 #85612A
analogous
#2A7C85 #2A4E85 #342A85
triadic
#2A4E85 #852A4E #4E852A
tetradic
#2A4E85 #852A7C #85612A #2A8534
square
#2A4E85 #852A7C #85612A #2A8534
split-complementary
#2A4E85 #85342A #7C852A
monochromatic
#0D1728 #1B3356 #2A4E85 #3969B4 #5D89CC

Accessibility & contrast

On white

8.31
#2A4E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E85
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E85#FFFFFF#000000##FFFFFF
##2A4E851.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355387
Deuteranopia (green-blind)
#274A84
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4e85;
/* rgb */ color: rgb(42, 78, 133);
/* oklch */ color: oklch(42.6% 0.101 258.7);
Tailwind
colors: {
  custom: {
    50: '#6e7fa9',
    500: '#2a4e85',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e85;
$custom-light: #6e7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e85",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 133
  },
  "hsl": {
    "h": 216.264,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42597,
    "c": 0.10077,
    "h": 258.7
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#2A4E85
secondary
#B28F59
accent
#A34CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E85

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

Preview Lab → · Contrast checker → · Palette generator →

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