#2A4587#2A4587

#2A4587 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.7% C 0.115 H 265.0°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#2A4587
RGBrgb(42, 69, 135)
HSLhsl(223, 53%, 35%)
HSVhsv(223, 69%, 53%)
CMYKcmyk(68.9%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.63, 13.02, -40.04)
CIE-LCHlch(30.63, 42.10, 288.01°)
OKLaboklab(40.65% -0.0101 -0.1147)
OKLCHoklch(40.65% 0.115 265)
XYZxyz(7.4546, 6.4970, 23.7782)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4587 #876C2A
analogous
#2A7387 #2A4587 #3E2A87
triadic
#2A4587 #872A45 #45872A
tetradic
#2A4587 #872A73 #876C2A #2A873E
square
#2A4587 #872A73 #876C2A #2A873E
split-complementary
#2A4587 #873E2A #73872A
monochromatic
#0D152A #1B2D58 #2A4587 #395DB6 #5E7ECD

Accessibility & contrast

On white

9.13
#2A4587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A4587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4587
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4587#FFFFFF#000000##FFFFFF
##2A45871.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D89
Deuteranopia (green-blind)
#0E4486
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4587;
/* rgb */ color: rgb(42, 69, 135);
/* oklch */ color: oklch(40.7% 0.115 265.0);
Tailwind
colors: {
  custom: {
    50: '#6f78aa',
    500: '#2a4587',
    950: '#000000',
  },
}
SCSS
$custom: #2a4587;
$custom-light: #6f78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4587",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 222.581,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40654,
    "c": 0.1151,
    "h": 265
  },
  "luminance": 0.06498
}

Semantic roles & 50–950 ramp

primary
#2A4587
secondary
#B3995A
accent
#B24CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4587

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

Preview Lab → · Contrast checker → · Palette generator →

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