#2A4498#2A4498

#2A4498 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.7% C 0.141 H 267.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2A4498
RGBrgb(42, 68, 152)
HSLhsl(226, 57%, 38%)
HSVhsv(226, 72%, 60%)
CMYKcmyk(72.4%, 55.3%, 0%, 40.4%)
CIE-LABlab(31.56, 20.22, -48.96)
CIE-LCHlch(31.56, 52.97, 292.44°)
OKLaboklab(41.75% -0.0072 -0.1409)
OKLCHoklch(41.75% 0.141 267.1)
XYZxyz(8.6875, 6.8926, 30.5722)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4498 #987E2A
analogous
#2A7B98 #2A4498 #472A98
triadic
#2A4498 #982A44 #44982A
tetradic
#2A4498 #982A7B #987E2A #2A9847
square
#2A4498 #982A7B #987E2A #2A9847
split-complementary
#2A4498 #98472A #7B982A
monochromatic
#101938 #1D2F68 #2A4498 #375AC8 #6781D5

Accessibility & contrast

On white

8.83
#2A4498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A4498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4498
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4498#FFFFFF#000000##FFFFFF
##2A44981.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a4498;
/* rgb */ color: rgb(42, 68, 152);
/* oklch */ color: oklch(41.7% 0.141 267.1);
Tailwind
colors: {
  custom: {
    50: '#7377b7',
    500: '#2a4498',
    950: '#000000',
  },
}
SCSS
$custom: #2a4498;
$custom-light: #7377b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4498",
  "rgb": {
    "r": 42,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 225.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.14113,
    "h": 267.1
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

primary
#2A4498
secondary
#BBA662
accent
#BC48E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4498

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

Preview Lab → · Contrast checker → · Palette generator →

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