#2D45A7#2D45A7

#2D45A7 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.160 H 268.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2D45A7
RGBrgb(45, 69, 167)
HSLhsl(228, 58%, 42%)
HSVhsv(228, 73%, 65%)
CMYKcmyk(73.1%, 58.7%, 0%, 34.5%)
CIE-LABlab(33.14, 25.65, -55.44)
CIE-LCHlch(33.14, 61.09, 294.83°)
OKLaboklab(43.34% -0.0045 -0.1599)
OKLCHoklch(43.34% 0.16 268.4)
XYZxyz(10.1830, 7.6031, 37.4826)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A7 #A78F2D
analogous
#2D82A7 #2D45A7 #522DA7
triadic
#2D45A7 #A72D45 #45A72D
tetradic
#2D45A7 #A72D82 #A78F2D #2DA752
square
#2D45A7 #A72D82 #A78F2D #2DA752
split-complementary
#2D45A7 #A7522D #82A72D
monochromatic
#131D47 #203177 #2D45A7 #445FCD #7589DA

Accessibility & contrast

On white

8.33
#2D45A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D45A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45A7
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A7#FFFFFF#000000##FFFFFF
##2D45A71.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d45a7;
/* rgb */ color: rgb(45, 69, 167);
/* oklch */ color: oklch(43.3% 0.160 268.4);
Tailwind
colors: {
  custom: {
    50: '#7778c2',
    500: '#2d45a7',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a7;
$custom-light: #7778c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a7",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 228.197,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43339,
    "c": 0.15997,
    "h": 268.4
  },
  "luminance": 0.07604
}

Semantic roles & 50–950 ramp

primary
#2D45A7
secondary
#C1B16E
accent
#C347E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D45A7

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

Preview Lab → · Contrast checker → · Palette generator →

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