#2A4F8E#2A4F8E

#2A4F8E is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.4% C 0.113 H 260.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2A4F8E
RGBrgb(42, 79, 142)
HSLhsl(218, 54%, 36%)
HSVhsv(218, 70%, 56%)
CMYKcmyk(70.4%, 44.4%, 0%, 44.3%)
CIE-LABlab(34.06, 8.97, -38.85)
CIE-LCHlch(34.06, 39.87, 283.01°)
OKLaboklab(43.43% -0.0189 -0.111)
OKLCHoklch(43.43% 0.113 260.3)
XYZxyz(8.6316, 8.0363, 26.6822)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F8E #8E692A
analogous
#2A818E #2A4F8E #372A8E
triadic
#2A4F8E #8E2A4F #4F8E2A
tetradic
#2A4F8E #8E2A81 #8E692A #2A8E37
square
#2A4F8E #8E2A81 #8E692A #2A8E37
split-complementary
#2A4F8E #8E372A #818E2A
monochromatic
#0E1A30 #1C355F #2A4F8E #3869BD #628BD1

Accessibility & contrast

On white

8.05
#2A4F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2A4F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F8E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F8E#FFFFFF#000000##FFFFFF
##2A4F8E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#204C8D
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4f8e;
/* rgb */ color: rgb(42, 79, 142);
/* oklch */ color: oklch(43.4% 0.113 260.3);
Tailwind
colors: {
  custom: {
    50: '#707faf',
    500: '#2a4f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f8e;
$custom-light: #707faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f8e",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 217.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43433,
    "c": 0.1126,
    "h": 260.3
  },
  "luminance": 0.08037
}

Semantic roles & 50–950 ramp

primary
#2A4F8E
secondary
#B6955D
accent
#A74ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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