#2A4F98#2A4F98

#2A4F98 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.1% C 0.127 H 262.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2A4F98
RGBrgb(42, 79, 152)
HSLhsl(220, 57%, 38%)
HSVhsv(220, 72%, 60%)
CMYKcmyk(72.4%, 48%, 0%, 40.4%)
CIE-LABlab(34.70, 12.82, -43.89)
CIE-LCHlch(34.70, 45.73, 286.28°)
OKLaboklab(44.14% -0.0171 -0.1258)
OKLCHoklch(44.14% 0.127 262.3)
XYZxyz(9.4163, 8.3502, 30.8152)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F98 #98732A
analogous
#2A8698 #2A4F98 #3C2A98
triadic
#2A4F98 #982A4F #4F982A
tetradic
#2A4F98 #982A86 #98732A #2A983C
square
#2A4F98 #982A86 #98732A #2A983C
split-complementary
#2A4F98 #983C2A #86982A
monochromatic
#101D38 #1D3668 #2A4F98 #3768C8 #678CD5

Accessibility & contrast

On white

7.86
#2A4F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A4F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F98
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F98#FFFFFF#000000##FFFFFF
##2A4F981.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#0E4D97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4f98;
/* rgb */ color: rgb(42, 79, 152);
/* oklch */ color: oklch(44.1% 0.127 262.3);
Tailwind
colors: {
  custom: {
    50: '#727fb7',
    500: '#2a4f98',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f98;
$custom-light: #727fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f98",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 219.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44135,
    "c": 0.12698,
    "h": 262.3
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#2A4F98
secondary
#BB9D62
accent
#AD48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4F98

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

Preview Lab → · Contrast checker → · Palette generator →

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