#2A4487#2A4487

#2A4487 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.116 H 265.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2A4487
RGBrgb(42, 68, 135)
HSLhsl(223, 53%, 35%)
HSVhsv(223, 69%, 53%)
CMYKcmyk(68.9%, 49.6%, 0%, 47.1%)
CIE-LABlab(30.34, 13.70, -40.51)
CIE-LCHlch(30.34, 42.76, 288.69°)
OKLaboklab(40.43% -0.0091 -0.1161)
OKLCHoklch(40.43% 0.116 265.5)
XYZxyz(7.3936, 6.3750, 23.7578)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4487 #876D2A
analogous
#2A7287 #2A4487 #3F2A87
triadic
#2A4487 #872A44 #44872A
tetradic
#2A4487 #872A72 #876D2A #2A873F
square
#2A4487 #872A72 #876D2A #2A873F
split-complementary
#2A4487 #873F2A #72872A
monochromatic
#0D152A #1B2C58 #2A4487 #395CB6 #5E7DCD

Accessibility & contrast

On white

9.23
#2A4487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A4487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4487
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4487#FFFFFF#000000##FFFFFF
##2A44871.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C89
Deuteranopia (green-blind)
#0A4386
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4487;
/* rgb */ color: rgb(42, 68, 135);
/* oklch */ color: oklch(40.4% 0.116 265.5);
Tailwind
colors: {
  custom: {
    50: '#6f77aa',
    500: '#2a4487',
    950: '#000000',
  },
}
SCSS
$custom: #2a4487;
$custom-light: #6f77aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4487",
  "rgb": {
    "r": 42,
    "g": 68,
    "b": 135
  },
  "hsl": {
    "h": 223.226,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4043,
    "c": 0.11642,
    "h": 265.5
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#2A4487
secondary
#B39A5A
accent
#B44CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4487

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

Preview Lab → · Contrast checker → · Palette generator →

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