#2A487C#2A487C

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

Color values

HEX#2A487C
RGBrgb(42, 72, 124)
HSLhsl(218, 49%, 33%)
HSVhsv(218, 66%, 49%)
CMYKcmyk(66.1%, 41.9%, 0%, 51.4%)
CIE-LABlab(30.83, 6.80, -32.88)
CIE-LCHlch(30.83, 33.58, 281.68°)
OKLaboklab(40.58% -0.0154 -0.0936)
OKLCHoklch(40.58% 0.095 260.7)
XYZxyz(6.9090, 6.5816, 19.9711)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A487C #7C5E2A
analogous
#2A717C #2A487C #352A7C
triadic
#2A487C #7C2A48 #487C2A
tetradic
#2A487C #7C2A71 #7C5E2A #2A7C35
square
#2A487C #7C2A71 #7C5E2A #2A7C35
split-complementary
#2A487C #7C352A #717C2A
monochromatic
#0B1321 #1B2D4E #2A487C #3963AA #5982C7

Accessibility & contrast

On white

9.07
#2A487C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A487C
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A487C#FFFFFF#000000##FFFFFF
##2A487C1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7E
Deuteranopia (green-blind)
#25457B
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a487c;
/* rgb */ color: rgb(42, 72, 124);
/* oklch */ color: oklch(40.6% 0.095 260.7);
Tailwind
colors: {
  custom: {
    50: '#6c7aa2',
    500: '#2a487c',
    950: '#000000',
  },
}
SCSS
$custom: #2a487c;
$custom-light: #6c7aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a487c",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 124
  },
  "hsl": {
    "h": 218.049,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40583,
    "c": 0.09487,
    "h": 260.7
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#2A487C
secondary
#AD8D55
accent
#A64FD9
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A487C

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

Preview Lab → · Contrast checker → · Palette generator →

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