#2A487F#2A487F

#2A487F is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.099 H 261.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2A487F
RGBrgb(42, 72, 127)
HSLhsl(219, 50%, 33%)
HSVhsv(219, 67%, 50%)
CMYKcmyk(66.9%, 43.3%, 0%, 50.2%)
CIE-LABlab(31.02, 7.93, -34.46)
CIE-LCHlch(31.02, 35.37, 282.96°)
OKLaboklab(40.78% -0.0147 -0.0982)
OKLCHoklch(40.78% 0.099 261.5)
XYZxyz(7.1016, 6.6586, 20.9855)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A487F #7F612A
analogous
#2A727F #2A487F #372A7F
triadic
#2A487F #7F2A48 #487F2A
tetradic
#2A487F #7F2A72 #7F612A #2A7F37
square
#2A487F #7F2A72 #7F612A #2A7F37
split-complementary
#2A487F #7F372A #727F2A
monochromatic
#0C1423 #1B2E51 #2A487F #3962AD #5B82C9

Accessibility & contrast

On white

9.01
#2A487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A487F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A487F#FFFFFF#000000##FFFFFF
##2A487F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D81
Deuteranopia (green-blind)
#22457E
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a487f;
/* rgb */ color: rgb(42, 72, 127);
/* oklch */ color: oklch(40.8% 0.099 261.5);
Tailwind
colors: {
  custom: {
    50: '#6d7aa4',
    500: '#2a487f',
    950: '#000000',
  },
}
SCSS
$custom: #2a487f;
$custom-light: #6d7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a487f",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 218.824,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40783,
    "c": 0.09934,
    "h": 261.5
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#2A487F
secondary
#AE8F57
accent
#A84EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A487F

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

Preview Lab → · Contrast checker → · Palette generator →

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