#2A4E8F#2A4E8F

#2A4E8F is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.3% C 0.115 H 261.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2A4E8F
RGBrgb(42, 78, 143)
HSLhsl(219, 55%, 36%)
HSVhsv(219, 71%, 56%)
CMYKcmyk(70.6%, 45.5%, 0%, 43.9%)
CIE-LABlab(33.82, 10.02, -39.84)
CIE-LCHlch(33.82, 41.08, 284.12°)
OKLaboklab(43.27% -0.0177 -0.1139)
OKLCHoklch(43.27% 0.115 261.2)
XYZxyz(8.6354, 7.9233, 27.0555)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E8F #8F6B2A
analogous
#2A818F #2A4E8F #392A8F
triadic
#2A4E8F #8F2A4E #4E8F2A
tetradic
#2A4E8F #8F2A81 #8F6B2A #2A8F39
square
#2A4E8F #8F2A81 #8F6B2A #2A8F39
split-complementary
#2A4E8F #8F392A #818F2A
monochromatic
#0E1A30 #1C3460 #2A4E8F #3868BE #628AD1

Accessibility & contrast

On white

8.12
#2A4E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E8F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E8F#FFFFFF#000000##FFFFFF
##2A4E8F1.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5591
Deuteranopia (green-blind)
#1C4B8E
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4e8f;
/* rgb */ color: rgb(42, 78, 143);
/* oklch */ color: oklch(43.3% 0.115 261.2);
Tailwind
colors: {
  custom: {
    50: '#707fb0',
    500: '#2a4e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e8f;
$custom-light: #707fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e8f",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 218.614,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43271,
    "c": 0.11529,
    "h": 261.2
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#2A4E8F
secondary
#B7975E
accent
#A94ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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