#2D45A3#2D45A3

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

Color values

HEX#2D45A3
RGBrgb(45, 69, 163)
HSLhsl(228, 57%, 41%)
HSVhsv(228, 72%, 64%)
CMYKcmyk(72.4%, 57.7%, 0%, 36.1%)
CIE-LABlab(32.83, 24.15, -53.55)
CIE-LCHlch(32.83, 58.75, 294.27°)
OKLaboklab(43% -0.0046 -0.1544)
OKLCHoklch(43% 0.154 268.3)
XYZxyz(9.8189, 7.4575, 35.5652)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A3 #A38B2D
analogous
#2D80A3 #2D45A3 #502DA3
triadic
#2D45A3 #A32D45 #45A32D
tetradic
#2D45A3 #A32D80 #A38B2D #2DA350
square
#2D45A3 #A32D80 #A38B2D #2DA350
split-complementary
#2D45A3 #A3502D #80A32D
monochromatic
#131C43 #203173 #2D45A3 #425ECB #7287D8

Accessibility & contrast

On white

8.43
#2D45A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2D45A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45A3
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A3#FFFFFF#000000##FFFFFF
##2D45A31.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d45a3;
/* rgb */ color: rgb(45, 69, 163);
/* oklch */ color: oklch(43.0% 0.154 268.3);
Tailwind
colors: {
  custom: {
    50: '#7678bf',
    500: '#2d45a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a3;
$custom-light: #7678bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a3",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 227.797,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43003,
    "c": 0.15443,
    "h": 268.3
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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