#2D45A5#2D45A5

#2D45A5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.2% C 0.157 H 268.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2D45A5
RGBrgb(45, 69, 165)
HSLhsl(228, 57%, 41%)
HSVhsv(228, 73%, 65%)
CMYKcmyk(72.7%, 58.2%, 0%, 35.3%)
CIE-LABlab(32.98, 24.90, -54.50)
CIE-LCHlch(32.98, 59.92, 294.56°)
OKLaboklab(43.17% -0.0046 -0.1571)
OKLCHoklch(43.17% 0.157 268.3)
XYZxyz(9.9995, 7.5297, 36.5164)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A5 #A58D2D
analogous
#2D81A5 #2D45A5 #512DA5
triadic
#2D45A5 #A52D45 #45A52D
tetradic
#2D45A5 #A52D81 #A58D2D #2DA551
square
#2D45A5 #A52D81 #A58D2D #2DA551
split-complementary
#2D45A5 #A5512D #81A52D
monochromatic
#131D45 #203175 #2D45A5 #435FCC #7388D9

Accessibility & contrast

On white

8.38
#2D45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2D45A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45A5
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A5#FFFFFF#000000##FFFFFF
##2D45A51.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d45a5;
/* rgb */ color: rgb(45, 69, 165);
/* oklch */ color: oklch(43.2% 0.157 268.3);
Tailwind
colors: {
  custom: {
    50: '#7778c0',
    500: '#2d45a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a5;
$custom-light: #7778c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a5",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 228,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4317,
    "c": 0.15721,
    "h": 268.3
  },
  "luminance": 0.07531
}

Semantic roles & 50–950 ramp

primary
#2D45A5
secondary
#C1B06D
accent
#C247E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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