#2A487B#2A487B

#2A487B is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.5% C 0.093 H 260.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2A487B
RGBrgb(42, 72, 123)
HSLhsl(218, 49%, 32%)
HSVhsv(218, 66%, 48%)
CMYKcmyk(65.9%, 41.5%, 0%, 51.8%)
CIE-LABlab(30.77, 6.42, -32.36)
CIE-LCHlch(30.77, 32.99, 281.22°)
OKLaboklab(40.52% -0.0156 -0.0921)
OKLCHoklch(40.52% 0.093 260.4)
XYZxyz(6.8461, 6.5564, 19.6398)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A487B #7B5D2A
analogous
#2A707B #2A487B #352A7B
triadic
#2A487B #7B2A48 #487B2A
tetradic
#2A487B #7B2A70 #7B5D2A #2A7B35
square
#2A487B #7B2A70 #7B5D2A #2A7B35
split-complementary
#2A487B #7B352A #707B2A
monochromatic
#0B1320 #1A2D4D #2A487B #3A63A9 #5982C6

Accessibility & contrast

On white

9.09
#2A487B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A487B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A487B
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A487B#FFFFFF#000000##FFFFFF
##2A487B1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7D
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#00545B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a487b;
/* rgb */ color: rgb(42, 72, 123);
/* oklch */ color: oklch(40.5% 0.093 260.4);
Tailwind
colors: {
  custom: {
    50: '#6c7aa1',
    500: '#2a487b',
    950: '#000000',
  },
}
SCSS
$custom: #2a487b;
$custom-light: #6c7aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a487b",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 123
  },
  "hsl": {
    "h": 217.778,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40517,
    "c": 0.09337,
    "h": 260.4
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#2A487B
secondary
#AC8C55
accent
#A64FD9
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #2A487B

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

Preview Lab → · Contrast checker → · Palette generator →

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