#2A4781#2A4781

#2A4781 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.104 H 262.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2A4781
RGBrgb(42, 71, 129)
HSLhsl(220, 51%, 34%)
HSVhsv(220, 67%, 51%)
CMYKcmyk(67.4%, 45%, 0%, 49.4%)
CIE-LABlab(30.84, 9.37, -35.99)
CIE-LCHlch(30.84, 37.19, 284.59°)
OKLaboklab(40.69% -0.0132 -0.1027)
OKLCHoklch(40.69% 0.104 262.7)
XYZxyz(7.1691, 6.5830, 21.6575)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4781 #81642A
analogous
#2A7281 #2A4781 #382A81
triadic
#2A4781 #812A47 #47812A
tetradic
#2A4781 #812A72 #81642A #2A8138
square
#2A4781 #812A72 #81642A #2A8138
split-complementary
#2A4781 #81382A #72812A
monochromatic
#0C1425 #1B2E53 #2A4781 #3960AF #5C80CA

Accessibility & contrast

On white

9.06
#2A4781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A4781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4781
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4781#FFFFFF#000000##FFFFFF
##2A47811.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4D83
Deuteranopia (green-blind)
#1E4580
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4781;
/* rgb */ color: rgb(42, 71, 129);
/* oklch */ color: oklch(40.7% 0.104 262.7);
Tailwind
colors: {
  custom: {
    50: '#6d79a6',
    500: '#2a4781',
    950: '#000000',
  },
}
SCSS
$custom: #2a4781;
$custom-light: #6d79a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4781",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 129
  },
  "hsl": {
    "h": 220,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40685,
    "c": 0.10359,
    "h": 262.7
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

primary
#2A4781
secondary
#AF9257
accent
#AB4DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4781

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

Preview Lab → · Contrast checker → · Palette generator →

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