#2D428C#2D428C

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

Color values

HEX#2D428C
RGBrgb(45, 66, 140)
HSLhsl(227, 51%, 36%)
HSVhsv(227, 68%, 55%)
CMYKcmyk(67.9%, 52.9%, 0%, 45.1%)
CIE-LABlab(30.27, 17.49, -43.70)
CIE-LCHlch(30.27, 47.07, 291.81°)
OKLaboklab(40.53% -0.0035 -0.1254)
OKLCHoklch(40.53% 0.125 268.4)
XYZxyz(7.7624, 6.3470, 25.6219)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D428C #8C772D
analogous
#2D728C #2D428C #482D8C
triadic
#2D428C #8C2D42 #428C2D
tetradic
#2D428C #8C2D72 #8C772D #2D8C48
square
#2D428C #8C2D72 #8C772D #2D8C48
split-complementary
#2D428C #8C482D #728C2D
monochromatic
#0F162F #1E2C5E #2D428C #3C58BA #667DCE

Accessibility & contrast

On white

9.25
#2D428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D428C
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D428C#FFFFFF#000000##FFFFFF
##2D428C1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d428c;
/* rgb */ color: rgb(45, 66, 140);
/* oklch */ color: oklch(40.5% 0.125 268.4);
Tailwind
colors: {
  custom: {
    50: '#7176ae',
    500: '#2d428c',
    950: '#000000',
  },
}
SCSS
$custom: #2d428c;
$custom-light: #7176ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d428c",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 226.737,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40533,
    "c": 0.12546,
    "h": 268.4
  },
  "luminance": 0.06348
}

Semantic roles & 50–950 ramp

primary
#2D428C
secondary
#B4A260
accent
#BB4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D428C

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

Preview Lab → · Contrast checker → · Palette generator →

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