#2D45A9#2D45A9

#2D45A9 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.163 H 268.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2D45A9
RGBrgb(45, 69, 169)
HSLhsl(228, 58%, 42%)
HSVhsv(228, 73%, 66%)
CMYKcmyk(73.4%, 59.2%, 0%, 33.7%)
CIE-LABlab(33.30, 26.40, -56.38)
CIE-LCHlch(33.30, 62.25, 295.10°)
OKLaboklab(43.51% -0.0044 -0.1627)
OKLCHoklch(43.51% 0.163 268.4)
XYZxyz(10.3693, 7.6776, 38.4639)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A9 #A9912D
analogous
#2D83A9 #2D45A9 #532DA9
triadic
#2D45A9 #A92D45 #45A92D
tetradic
#2D45A9 #A92D83 #A9912D #2DA953
square
#2D45A9 #A92D83 #A9912D #2DA953
split-complementary
#2D45A9 #A9532D #83A92D
monochromatic
#131E48 #203179 #2D45A9 #4660CE #7689DA

Accessibility & contrast

On white

8.28
#2D45A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2D45A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45A9
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A9#FFFFFF#000000##FFFFFF
##2D45A91.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d45a9;
/* rgb */ color: rgb(45, 69, 169);
/* oklch */ color: oklch(43.5% 0.163 268.4);
Tailwind
colors: {
  custom: {
    50: '#7878c3',
    500: '#2d45a9',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a9;
$custom-light: #7878c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a9",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 169
  },
  "hsl": {
    "h": 228.387,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43508,
    "c": 0.16272,
    "h": 268.4
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#2D45A9
secondary
#C2B26F
accent
#C347E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D45A9

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

Preview Lab → · Contrast checker → · Palette generator →

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