#2A428C#2A428C

#2A428C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.126 H 267.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2A428C
RGBrgb(42, 66, 140)
HSLhsl(225, 54%, 36%)
HSVhsv(225, 70%, 55%)
CMYKcmyk(70%, 52.9%, 0%, 45.1%)
CIE-LABlab(30.11, 16.98, -43.96)
CIE-LCHlch(30.11, 47.13, 291.12°)
OKLaboklab(40.37% -0.0065 -0.1263)
OKLCHoklch(40.37% 0.126 267.1)
XYZxyz(7.6350, 6.2814, 25.6159)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A428C #8C742A
analogous
#2A738C #2A428C #432A8C
triadic
#2A428C #8C2A42 #428C2A
tetradic
#2A428C #8C2A73 #8C742A #2A8C43
square
#2A428C #8C2A73 #8C742A #2A8C43
split-complementary
#2A428C #8C432A #738C2A
monochromatic
#0E162E #1C2C5D #2A428C #3858BB #617CD0

Accessibility & contrast

On white

9.31
#2A428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A428C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A428C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A428C#FFFFFF#000000##FFFFFF
##2A428C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a428c;
/* rgb */ color: rgb(42, 66, 140);
/* oklch */ color: oklch(40.4% 0.126 267.1);
Tailwind
colors: {
  custom: {
    50: '#7075ae',
    500: '#2a428c',
    950: '#000000',
  },
}
SCSS
$custom: #2a428c;
$custom-light: #7075ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a428c",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 225.306,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40369,
    "c": 0.12643,
    "h": 267.1
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#2A428C
secondary
#B5A05C
accent
#B94BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A428C

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

Preview Lab → · Contrast checker → · Palette generator →

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