#2A4387#2A4387

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

Color values

HEX#2A4387
RGBrgb(42, 67, 135)
HSLhsl(224, 53%, 35%)
HSVhsv(224, 69%, 53%)
CMYKcmyk(68.9%, 50.4%, 0%, 47.1%)
CIE-LABlab(30.05, 14.38, -40.98)
CIE-LCHlch(30.05, 43.43, 289.34°)
OKLaboklab(40.21% -0.0081 -0.1175)
OKLCHoklch(40.21% 0.118 266.1)
XYZxyz(7.3337, 6.2551, 23.7378)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4387 #876E2A
analogous
#2A7287 #2A4387 #402A87
triadic
#2A4387 #872A43 #43872A
tetradic
#2A4387 #872A72 #876E2A #2A8740
square
#2A4387 #872A72 #876E2A #2A8740
split-complementary
#2A4387 #87402A #72872A
monochromatic
#0D152A #1B2C58 #2A4387 #395AB6 #5E7CCD

Accessibility & contrast

On white

9.33
#2A4387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A4387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4387
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4387#FFFFFF#000000##FFFFFF
##2A43871.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B89
Deuteranopia (green-blind)
#054386
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4387;
/* rgb */ color: rgb(42, 67, 135);
/* oklch */ color: oklch(40.2% 0.118 266.1);
Tailwind
colors: {
  custom: {
    50: '#6f76aa',
    500: '#2a4387',
    950: '#000000',
  },
}
SCSS
$custom: #2a4387;
$custom-light: #6f76aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4387",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 223.871,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40207,
    "c": 0.11775,
    "h": 266.1
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#2A4387
secondary
#B39B5A
accent
#B54CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4387

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

Preview Lab → · Contrast checker → · Palette generator →

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