#2A4F8F#2A4F8F

#2A4F8F is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.114 H 260.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2A4F8F
RGBrgb(42, 79, 143)
HSLhsl(218, 55%, 36%)
HSVhsv(218, 71%, 56%)
CMYKcmyk(70.6%, 44.8%, 0%, 43.9%)
CIE-LABlab(34.12, 9.36, -39.36)
CIE-LCHlch(34.12, 40.46, 283.37°)
OKLaboklab(43.5% -0.0187 -0.1125)
OKLCHoklch(43.5% 0.114 260.6)
XYZxyz(8.7070, 8.0665, 27.0794)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F8F #8F6A2A
analogous
#2A828F #2A4F8F #382A8F
triadic
#2A4F8F #8F2A4F #4F8F2A
tetradic
#2A4F8F #8F2A82 #8F6A2A #2A8F38
square
#2A4F8F #8F2A82 #8F6A2A #2A8F38
split-complementary
#2A4F8F #8F382A #828F2A
monochromatic
#0E1B30 #1C3560 #2A4F8F #3869BE #628BD1

Accessibility & contrast

On white

8.04
#2A4F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4F8F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F8F#FFFFFF#000000##FFFFFF
##2A4F8F1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#1E4C8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4f8f;
/* rgb */ color: rgb(42, 79, 143);
/* oklch */ color: oklch(43.5% 0.114 260.6);
Tailwind
colors: {
  custom: {
    50: '#707fb0',
    500: '#2a4f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f8f;
$custom-light: #707fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f8f",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 218.02,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43501,
    "c": 0.11404,
    "h": 260.6
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#2A4F8F
secondary
#B7965E
accent
#A84ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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