#2A4582#2A4582

#2A4582 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.108 H 264.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2A4582
RGBrgb(42, 69, 130)
HSLhsl(222, 51%, 34%)
HSVhsv(222, 68%, 51%)
CMYKcmyk(67.7%, 46.9%, 0%, 49%)
CIE-LABlab(30.30, 11.11, -37.47)
CIE-LCHlch(30.30, 39.08, 286.51°)
OKLaboklab(40.29% -0.0109 -0.1071)
OKLCHoklch(40.29% 0.108 264.2)
XYZxyz(7.1108, 6.3595, 21.9675)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4582 #82672A
analogous
#2A7182 #2A4582 #3B2A82
triadic
#2A4582 #822A45 #45822A
tetradic
#2A4582 #822A71 #82672A #2A823B
square
#2A4582 #822A71 #82672A #2A823B
split-complementary
#2A4582 #823B2A #71822A
monochromatic
#0C1425 #1B2C54 #2A4582 #395EB0 #5C7ECA

Accessibility & contrast

On white

9.24
#2A4582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A4582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4582
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4582#FFFFFF#000000##FFFFFF
##2A45821.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274C84
Deuteranopia (green-blind)
#174481
Tritanopia (blue-blind)
#00535D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4582;
/* rgb */ color: rgb(42, 69, 130);
/* oklch */ color: oklch(40.3% 0.108 264.2);
Tailwind
colors: {
  custom: {
    50: '#6e78a7',
    500: '#2a4582',
    950: '#000000',
  },
}
SCSS
$custom: #2a4582;
$custom-light: #6e78a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4582",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 130
  },
  "hsl": {
    "h": 221.591,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40294,
    "c": 0.10766,
    "h": 264.2
  },
  "luminance": 0.0636
}

Semantic roles & 50–950 ramp

primary
#2A4582
secondary
#B09558
accent
#AF4DDB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4582

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

Preview Lab → · Contrast checker → · Palette generator →

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