#2A4C8E#2A4C8E

#2A4C8E is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.116 H 262.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2A4C8E
RGBrgb(42, 76, 142)
HSLhsl(220, 54%, 36%)
HSVhsv(220, 70%, 56%)
CMYKcmyk(70.4%, 46.5%, 0%, 44.3%)
CIE-LABlab(33.16, 10.98, -40.28)
CIE-LCHlch(33.16, 41.75, 285.24°)
OKLaboklab(42.74% -0.0159 -0.1153)
OKLCHoklch(42.74% 0.116 262.1)
XYZxyz(8.4200, 7.6133, 26.6117)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C8E #8E6C2A
analogous
#2A7E8E #2A4C8E #3A2A8E
triadic
#2A4C8E #8E2A4C #4C8E2A
tetradic
#2A4C8E #8E2A7E #8E6C2A #2A8E3A
square
#2A4C8E #8E2A7E #8E6C2A #2A8E3A
split-complementary
#2A4C8E #8E3A2A #7E8E2A
monochromatic
#0E1930 #1C335F #2A4C8E #3865BD #6287D1

Accessibility & contrast

On white

8.32
#2A4C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A4C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C8E
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C8E#FFFFFF#000000##FFFFFF
##2A4C8E1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5390
Deuteranopia (green-blind)
#184A8D
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4c8e;
/* rgb */ color: rgb(42, 76, 142);
/* oklch */ color: oklch(42.7% 0.116 262.1);
Tailwind
colors: {
  custom: {
    50: '#707daf',
    500: '#2a4c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c8e;
$custom-light: #707daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c8e",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 219.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42744,
    "c": 0.11635,
    "h": 262.1
  },
  "luminance": 0.07614
}

Semantic roles & 50–950 ramp

primary
#2A4C8E
secondary
#B6985D
accent
#AC4ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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