#2A4E8B#2A4E8B

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

Color values

HEX#2A4E8B
RGBrgb(42, 78, 139)
HSLhsl(218, 54%, 35%)
HSVhsv(218, 70%, 55%)
CMYKcmyk(69.8%, 43.9%, 0%, 45.5%)
CIE-LABlab(33.57, 8.49, -37.79)
CIE-LCHlch(33.57, 38.73, 282.66°)
OKLaboklab(43% -0.0185 -0.1079)
OKLCHoklch(43% 0.109 260.3)
XYZxyz(8.3378, 7.8043, 25.4881)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E8B #8B672A
analogous
#2A7E8B #2A4E8B #362A8B
triadic
#2A4E8B #8B2A4E #4E8B2A
tetradic
#2A4E8B #8B2A7E #8B672A #2A8B36
square
#2A4E8B #8B2A7E #8B672A #2A8B36
split-complementary
#2A4E8B #8B362A #7E8B2A
monochromatic
#0E192D #1C345C #2A4E8B #3868BA #6089CF

Accessibility & contrast

On white

8.20
#2A4E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A4E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E8B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E8B#FFFFFF#000000##FFFFFF
##2A4E8B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e8b;
/* rgb */ color: rgb(42, 78, 139);
/* oklch */ color: oklch(43.0% 0.109 260.3);
Tailwind
colors: {
  custom: {
    50: '#6f7fad',
    500: '#2a4e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e8b;
$custom-light: #6f7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e8b",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 217.732,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42997,
    "c": 0.10948,
    "h": 260.3
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

primary
#2A4E8B
secondary
#B5945C
accent
#A74BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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