#2A428E#2A428E

#2A428E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.129 H 267.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2A428E
RGBrgb(42, 66, 142)
HSLhsl(226, 54%, 36%)
HSVhsv(226, 70%, 56%)
CMYKcmyk(70.4%, 53.5%, 0%, 44.3%)
CIE-LABlab(30.26, 17.75, -44.96)
CIE-LCHlch(30.26, 48.34, 291.54°)
OKLaboklab(40.53% -0.0063 -0.1292)
OKLCHoklch(40.53% 0.129 267.2)
XYZxyz(7.7839, 6.3409, 26.3996)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A428E #8E762A
analogous
#2A748E #2A428E #442A8E
triadic
#2A428E #8E2A42 #428E2A
tetradic
#2A428E #8E2A74 #8E762A #2A8E44
square
#2A428E #8E2A74 #8E762A #2A8E44
split-complementary
#2A428E #8E442A #748E2A
monochromatic
#0E1630 #1C2C5F #2A428E #3858BD #627CD1

Accessibility & contrast

On white

9.26
#2A428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A428E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A428E#FFFFFF#000000##FFFFFF
##2A428E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a428e;
/* rgb */ color: rgb(42, 66, 142);
/* oklch */ color: oklch(40.5% 0.129 267.2);
Tailwind
colors: {
  custom: {
    50: '#7075b0',
    500: '#2a428e',
    950: '#000000',
  },
}
SCSS
$custom: #2a428e;
$custom-light: #7075b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a428e",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 225.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.12934,
    "h": 267.2
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#2A428E
secondary
#B6A15D
accent
#BA4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A428E

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

Preview Lab → · Contrast checker → · Palette generator →

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