#2A4E8E#2A4E8E

#2A4E8E is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.114 H 261.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2A4E8E
RGBrgb(42, 78, 142)
HSLhsl(218, 54%, 36%)
HSVhsv(218, 70%, 56%)
CMYKcmyk(70.4%, 45.1%, 0%, 44.3%)
CIE-LABlab(33.76, 9.64, -39.33)
CIE-LCHlch(33.76, 40.49, 283.77°)
OKLaboklab(43.2% -0.0179 -0.1124)
OKLCHoklch(43.2% 0.114 261)
XYZxyz(8.5600, 7.8931, 26.6583)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E8E #8E6A2A
analogous
#2A808E #2A4E8E #382A8E
triadic
#2A4E8E #8E2A4E #4E8E2A
tetradic
#2A4E8E #8E2A80 #8E6A2A #2A8E38
square
#2A4E8E #8E2A80 #8E6A2A #2A8E38
split-complementary
#2A4E8E #8E382A #808E2A
monochromatic
#0E1A30 #1C345F #2A4E8E #3868BD #628AD1

Accessibility & contrast

On white

8.14
#2A4E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2A4E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E8E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E8E#FFFFFF#000000##FFFFFF
##2A4E8E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#1D4B8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e8e;
/* rgb */ color: rgb(42, 78, 142);
/* oklch */ color: oklch(43.2% 0.114 261.0);
Tailwind
colors: {
  custom: {
    50: '#707faf',
    500: '#2a4e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e8e;
$custom-light: #707faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e8e",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 142
  },
  "hsl": {
    "h": 218.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43202,
    "c": 0.11383,
    "h": 261
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#2A4E8E
secondary
#B6965D
accent
#A94ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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