#2A487E#2A487E

#2A487E is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.098 H 261.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2A487E
RGBrgb(42, 72, 126)
HSLhsl(219, 50%, 33%)
HSVhsv(219, 67%, 49%)
CMYKcmyk(66.7%, 42.9%, 0%, 50.6%)
CIE-LABlab(30.96, 7.55, -33.94)
CIE-LCHlch(30.96, 34.77, 282.55°)
OKLaboklab(40.72% -0.0149 -0.0967)
OKLCHoklch(40.72% 0.098 261.2)
XYZxyz(7.0368, 6.6327, 20.6440)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A487E #7E602A
analogous
#2A727E #2A487E #362A7E
triadic
#2A487E #7E2A48 #487E2A
tetradic
#2A487E #7E2A72 #7E602A #2A7E36
square
#2A487E #7E2A72 #7E602A #2A7E36
split-complementary
#2A487E #7E362A #727E2A
monochromatic
#0B1422 #1B2E50 #2A487E #3962AC #5A82C8

Accessibility & contrast

On white

9.03
#2A487E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A487E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A487E#FFFFFF#000000##FFFFFF
##2A487E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D80
Deuteranopia (green-blind)
#23457D
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a487e;
/* rgb */ color: rgb(42, 72, 126);
/* oklch */ color: oklch(40.7% 0.098 261.2);
Tailwind
colors: {
  custom: {
    50: '#6d7aa4',
    500: '#2a487e',
    950: '#000000',
  },
}
SCSS
$custom: #2a487e;
$custom-light: #6d7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a487e",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 126
  },
  "hsl": {
    "h": 218.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40716,
    "c": 0.09784,
    "h": 261.2
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#2A487E
secondary
#AE8E56
accent
#A84EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A487E

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

Preview Lab → · Contrast checker → · Palette generator →

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