#2D45A1#2D45A1

#2D45A1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.152 H 268.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2D45A1
RGBrgb(45, 69, 161)
HSLhsl(228, 56%, 40%)
HSVhsv(228, 72%, 63%)
CMYKcmyk(72%, 57.1%, 0%, 36.9%)
CIE-LABlab(32.67, 23.40, -52.60)
CIE-LCHlch(32.67, 57.57, 293.98°)
OKLaboklab(42.84% -0.0047 -0.1516)
OKLCHoklch(42.84% 0.152 268.2)
XYZxyz(9.6411, 7.3864, 34.6289)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A1 #A1892D
analogous
#2D7FA1 #2D45A1 #4F2DA1
triadic
#2D45A1 #A12D45 #45A12D
tetradic
#2D45A1 #A12D7F #A1892D #2DA14F
square
#2D45A1 #A12D7F #A1892D #2DA14F
split-complementary
#2D45A1 #A14F2D #7FA12D
monochromatic
#121C41 #203171 #2D45A1 #415ECA #7186D7

Accessibility & contrast

On white

8.48
#2D45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D45A1
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A1#FFFFFF#000000##FFFFFF
##2D45A11.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d45a1;
/* rgb */ color: rgb(45, 69, 161);
/* oklch */ color: oklch(42.8% 0.152 268.2);
Tailwind
colors: {
  custom: {
    50: '#7678be',
    500: '#2d45a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a1;
$custom-light: #7678be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a1",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 227.586,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42838,
    "c": 0.15164,
    "h": 268.2
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#2D45A1
secondary
#BFAD6B
accent
#C048E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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