#2D45A2#2D45A2

#2D45A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.153 H 268.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2D45A2
RGBrgb(45, 69, 162)
HSLhsl(228, 57%, 41%)
HSVhsv(228, 72%, 64%)
CMYKcmyk(72.2%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.75, 23.77, -53.08)
CIE-LCHlch(32.75, 58.16, 294.13°)
OKLaboklab(42.92% -0.0047 -0.153)
OKLCHoklch(42.92% 0.153 268.3)
XYZxyz(9.7296, 7.4218, 35.0952)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A2 #A28A2D
analogous
#2D7FA2 #2D45A2 #4F2DA2
triadic
#2D45A2 #A22D45 #45A22D
tetradic
#2D45A2 #A22D7F #A28A2D #2DA24F
square
#2D45A2 #A22D7F #A28A2D #2DA24F
split-complementary
#2D45A2 #A24F2D #7FA22D
monochromatic
#121C42 #203172 #2D45A2 #425ECA #7287D8

Accessibility & contrast

On white

8.45
#2D45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2D45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45A2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A2#FFFFFF#000000##FFFFFF
##2D45A21.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d45a2;
/* rgb */ color: rgb(45, 69, 162);
/* oklch */ color: oklch(42.9% 0.153 268.3);
Tailwind
colors: {
  custom: {
    50: '#7678be',
    500: '#2d45a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a2;
$custom-light: #7678be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a2",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 227.692,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.15304,
    "h": 268.3
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#2D45A2
secondary
#BFAE6C
accent
#C148E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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