#2D45B4#2D45B4

#2D45B4 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.5% C 0.178 H 268.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2D45B4
RGBrgb(45, 69, 180)
HSLhsl(229, 60%, 44%)
HSVhsv(229, 75%, 71%)
CMYKcmyk(75%, 61.7%, 0%, 29.4%)
CIE-LABlab(34.21, 30.50, -61.45)
CIE-LCHlch(34.21, 68.60, 296.40°)
OKLaboklab(44.46% -0.0044 -0.1775)
OKLCHoklch(44.46% 0.178 268.6)
XYZxyz(11.4457, 8.1082, 44.1330)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45B4 #B49C2D
analogous
#2D89B4 #2D45B4 #582DB4
triadic
#2D45B4 #B42D45 #45B42D
tetradic
#2D45B4 #B42D89 #B49C2D #2DB458
square
#2D45B4 #B42D89 #B49C2D #2DB458
split-complementary
#2D45B4 #B4582D #89B42D
monochromatic
#151F52 #213283 #2D45B4 #4C64D2 #7D8EDE

Accessibility & contrast

On white

8.01
#2D45B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2D45B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45B4
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45B4#FFFFFF#000000##FFFFFF
##2D45B41.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d45b4;
/* rgb */ color: rgb(45, 69, 180);
/* oklch */ color: oklch(44.5% 0.178 268.6);
Tailwind
colors: {
  custom: {
    50: '#7a78cb',
    500: '#2d45b4',
    950: '#000000',
  },
}
SCSS
$custom: #2d45b4;
$custom-light: #7a78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45b4",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 229.333,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44463,
    "c": 0.17759,
    "h": 268.6
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#2D45B4
secondary
#C7B976
accent
#C745E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2D45B4

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

Preview Lab → · Contrast checker → · Palette generator →

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