#2A4998#2A4998

#2A4998 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.135 H 265.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2A4998
RGBrgb(42, 73, 152)
HSLhsl(223, 57%, 38%)
HSVhsv(223, 72%, 60%)
CMYKcmyk(72.4%, 52%, 0%, 40.4%)
CIE-LABlab(32.97, 16.84, -46.68)
CIE-LCHlch(32.97, 49.63, 289.84°)
OKLaboklab(42.81% -0.0116 -0.1341)
OKLCHoklch(42.81% 0.135 265.1)
XYZxyz(9.0029, 7.5234, 30.6774)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4998 #98792A
analogous
#2A8098 #2A4998 #422A98
triadic
#2A4998 #982A49 #49982A
tetradic
#2A4998 #982A80 #98792A #2A9842
square
#2A4998 #982A80 #98792A #2A9842
split-complementary
#2A4998 #98422A #80982A
monochromatic
#101B38 #1D3268 #2A4998 #3760C8 #6786D5

Accessibility & contrast

On white

8.38
#2A4998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A4998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4998
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4998#FFFFFF#000000##FFFFFF
##2A49981.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18539B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4998;
/* rgb */ color: rgb(42, 73, 152);
/* oklch */ color: oklch(42.8% 0.135 265.1);
Tailwind
colors: {
  custom: {
    50: '#727bb7',
    500: '#2a4998',
    950: '#000000',
  },
}
SCSS
$custom: #2a4998;
$custom-light: #727bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4998",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 152
  },
  "hsl": {
    "h": 223.091,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42813,
    "c": 0.13465,
    "h": 265.1
  },
  "luminance": 0.07524
}

Semantic roles & 50–950 ramp

primary
#2A4998
secondary
#BBA262
accent
#B548E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4998

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

Preview Lab → · Contrast checker → · Palette generator →

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