#2A4F87#2A4F87

#2A4F87 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.102 H 258.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2A4F87
RGBrgb(42, 79, 135)
HSLhsl(216, 53%, 35%)
HSVhsv(216, 69%, 53%)
CMYKcmyk(68.9%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.63, 6.30, -35.24)
CIE-LCHlch(33.63, 35.80, 280.14°)
OKLaboklab(42.96% -0.0204 -0.1004)
OKLCHoklch(42.96% 0.102 258.5)
XYZxyz(8.1224, 7.8327, 24.0008)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F87 #87622A
analogous
#2A7E87 #2A4F87 #342A87
triadic
#2A4F87 #872A4F #4F872A
tetradic
#2A4F87 #872A7E #87622A #2A8734
square
#2A4F87 #872A7E #87622A #2A8734
split-complementary
#2A4F87 #87342A #7E872A
monochromatic
#0D182A #1B3458 #2A4F87 #396AB6 #5E8ACD

Accessibility & contrast

On white

8.18
#2A4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A4F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F87
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F87#FFFFFF#000000##FFFFFF
##2A4F871.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355489
Deuteranopia (green-blind)
#274B86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4f87;
/* rgb */ color: rgb(42, 79, 135);
/* oklch */ color: oklch(43.0% 0.102 258.5);
Tailwind
colors: {
  custom: {
    50: '#6e7faa',
    500: '#2a4f87',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f87;
$custom-light: #6e7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f87",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 216.129,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42964,
    "c": 0.10247,
    "h": 258.5
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#2A4F87
secondary
#B38F5A
accent
#A34CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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