#2A4770#2A4770

#2A4770 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.6% C 0.078 H 257.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2A4770
RGBrgb(42, 71, 112)
HSLhsl(215, 45%, 30%)
HSVhsv(215, 63%, 44%)
CMYKcmyk(62.5%, 36.6%, 0%, 56.1%)
CIE-LABlab(29.83, 2.98, -26.94)
CIE-LCHlch(29.83, 27.11, 276.31°)
OKLaboklab(39.58% -0.0173 -0.0762)
OKLCHoklch(39.58% 0.078 257.2)
XYZxyz(6.1317, 6.1680, 16.1935)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4770 #70532A
analogous
#2A6A70 #2A4770 #302A70
triadic
#2A4770 #702A47 #47702A
tetradic
#2A4770 #702A6A #70532A #2A7030
square
#2A4770 #702A6A #70532A #2A7030
split-complementary
#2A4770 #70302A #6A702A
monochromatic
#090F17 #192B43 #2A4770 #3B639D #5581BF

Accessibility & contrast

On white

9.40
#2A4770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4770
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4770#FFFFFF#000000##FFFFFF
##2A47701.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364A72
Deuteranopia (green-blind)
#2D436F
Tritanopia (blue-blind)
#005056
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4770;
/* rgb */ color: rgb(42, 71, 112);
/* oklch */ color: oklch(39.6% 0.078 257.2);
Tailwind
colors: {
  custom: {
    50: '#6a7999',
    500: '#2a4770',
    950: '#000000',
  },
}
SCSS
$custom: #2a4770;
$custom-light: #6a7999;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4770",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 112
  },
  "hsl": {
    "h": 215.143,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39579,
    "c": 0.07818,
    "h": 257.2
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#2A4770
secondary
#A28254
accent
#9F53D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4770

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

Preview Lab → · Contrast checker → · Palette generator →

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