#2A4580#2A4580

#2A4580 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.105 H 263.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2A4580
RGBrgb(42, 69, 128)
HSLhsl(221, 51%, 33%)
HSVhsv(221, 67%, 50%)
CMYKcmyk(67.2%, 46.1%, 0%, 49.8%)
CIE-LABlab(30.17, 10.34, -36.43)
CIE-LCHlch(30.17, 37.87, 285.85°)
OKLaboklab(40.15% -0.0113 -0.1041)
OKLCHoklch(40.15% 0.105 263.8)
XYZxyz(6.9779, 6.3063, 21.2674)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4580 #80652A
analogous
#2A7080 #2A4580 #3A2A80
triadic
#2A4580 #802A45 #45802A
tetradic
#2A4580 #802A70 #80652A #2A803A
square
#2A4580 #802A70 #80652A #2A803A
split-complementary
#2A4580 #803A2A #70802A
monochromatic
#0C1324 #1B2C52 #2A4580 #395EAE #5B7EC9

Accessibility & contrast

On white

9.29
#2A4580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A4580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4580
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4580#FFFFFF#000000##FFFFFF
##2A45801.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B82
Deuteranopia (green-blind)
#1A437F
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4580;
/* rgb */ color: rgb(42, 69, 128);
/* oklch */ color: oklch(40.2% 0.105 263.8);
Tailwind
colors: {
  custom: {
    50: '#6d78a5',
    500: '#2a4580',
    950: '#000000',
  },
}
SCSS
$custom: #2a4580;
$custom-light: #6d78a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4580",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 128
  },
  "hsl": {
    "h": 221.163,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40153,
    "c": 0.10468,
    "h": 263.8
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#2A4580
secondary
#AF9357
accent
#AE4EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4580

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

Preview Lab → · Contrast checker → · Palette generator →

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