#2D45B6#2D45B6

#2D45B6 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.180 H 268.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2D45B6
RGBrgb(45, 69, 182)
HSLhsl(229, 60%, 45%)
HSVhsv(229, 75%, 71%)
CMYKcmyk(75.3%, 62.1%, 0%, 28.6%)
CIE-LABlab(34.38, 31.24, -62.36)
CIE-LCHlch(34.38, 69.74, 296.61°)
OKLaboklab(44.64% -0.0044 -0.1802)
OKLCHoklch(44.64% 0.18 268.6)
XYZxyz(11.6509, 8.1903, 45.2137)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45B6 #B69E2D
analogous
#2D8AB6 #2D45B6 #5A2DB6
triadic
#2D45B6 #B62D45 #45B62D
tetradic
#2D45B6 #B62D8A #B69E2D #2DB65A
square
#2D45B6 #B62D8A #B69E2D #2DB65A
split-complementary
#2D45B6 #B65A2D #8AB62D
monochromatic
#152054 #213285 #2D45B6 #4D65D3 #7E8FDF

Accessibility & contrast

On white

7.96
#2D45B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2D45B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45B6
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45B6#FFFFFF#000000##FFFFFF
##2D45B61.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d45b6;
/* rgb */ color: rgb(45, 69, 182);
/* oklch */ color: oklch(44.6% 0.180 268.6);
Tailwind
colors: {
  custom: {
    50: '#7b78cd',
    500: '#2d45b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d45b6;
$custom-light: #7b78cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45b6",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 182
  },
  "hsl": {
    "h": 229.489,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4464,
    "c": 0.18025,
    "h": 268.6
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#2D45B6
secondary
#C8BA77
accent
#C844E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2D45B6

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

Preview Lab → · Contrast checker → · Palette generator →

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