#2A4E81#2A4E81

#2A4E81 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.095 H 257.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2A4E81
RGBrgb(42, 78, 129)
HSLhsl(215, 51%, 34%)
HSVhsv(215, 67%, 51%)
CMYKcmyk(67.4%, 39.5%, 0%, 49.4%)
CIE-LABlab(32.97, 4.69, -32.59)
CIE-LCHlch(32.97, 32.93, 278.19°)
OKLaboklab(42.34% -0.0208 -0.0927)
OKLCHoklch(42.34% 0.095 257.3)
XYZxyz(7.6403, 7.5253, 21.8145)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E81 #815D2A
analogous
#2A7981 #2A4E81 #312A81
triadic
#2A4E81 #812A4E #4E812A
tetradic
#2A4E81 #812A79 #815D2A #2A8131
square
#2A4E81 #812A79 #815D2A #2A8131
split-complementary
#2A4E81 #81312A #79812A
monochromatic
#0C1625 #1B3253 #2A4E81 #396AAF #5C89CA

Accessibility & contrast

On white

8.38
#2A4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A4E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E81
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E81#FFFFFF#000000##FFFFFF
##2A4E811.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375283
Deuteranopia (green-blind)
#2B4A80
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4e81;
/* rgb */ color: rgb(42, 78, 129);
/* oklch */ color: oklch(42.3% 0.095 257.3);
Tailwind
colors: {
  custom: {
    50: '#6d7fa6',
    500: '#2a4e81',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e81;
$custom-light: #6d7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e81",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 215.172,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.09497,
    "h": 257.3
  },
  "luminance": 0.07526
}

Semantic roles & 50–950 ramp

primary
#2A4E81
secondary
#AF8B57
accent
#A04DDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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