#2A487D#2A487D

#2A487D is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.096 H 261.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2A487D
RGBrgb(42, 72, 125)
HSLhsl(218, 50%, 33%)
HSVhsv(218, 66%, 49%)
CMYKcmyk(66.4%, 42.4%, 0%, 51%)
CIE-LABlab(30.89, 7.18, -33.41)
CIE-LCHlch(30.89, 34.17, 282.12°)
OKLaboklab(40.65% -0.0151 -0.0951)
OKLCHoklch(40.65% 0.096 261)
XYZxyz(6.9726, 6.6070, 20.3059)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A487D #7D5F2A
analogous
#2A727D #2A487D #352A7D
triadic
#2A487D #7D2A48 #487D2A
tetradic
#2A487D #7D2A72 #7D5F2A #2A7D35
square
#2A487D #7D2A72 #7D5F2A #2A7D35
split-complementary
#2A487D #7D352A #727D2A
monochromatic
#0B1321 #1B2E4F #2A487D #3962AB #5A82C8

Accessibility & contrast

On white

9.05
#2A487D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A487D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A487D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A487D#FFFFFF#000000##FFFFFF
##2A487D1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D7F
Deuteranopia (green-blind)
#24457C
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a487d;
/* rgb */ color: rgb(42, 72, 125);
/* oklch */ color: oklch(40.6% 0.096 261.0);
Tailwind
colors: {
  custom: {
    50: '#6d7aa3',
    500: '#2a487d',
    950: '#000000',
  },
}
SCSS
$custom: #2a487d;
$custom-light: #6d7aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a487d",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 125
  },
  "hsl": {
    "h": 218.313,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40649,
    "c": 0.09635,
    "h": 261
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#2A487D
secondary
#AD8E56
accent
#A74FD9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A487D

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

Preview Lab → · Contrast checker → · Palette generator →

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