#2D45AC#2D45AC

#2D45AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.167 H 268.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2D45AC
RGBrgb(45, 69, 172)
HSLhsl(229, 59%, 43%)
HSVhsv(229, 74%, 67%)
CMYKcmyk(73.8%, 59.9%, 0%, 32.5%)
CIE-LABlab(33.55, 27.52, -57.77)
CIE-LCHlch(33.55, 64.00, 295.47°)
OKLaboklab(43.77% -0.0044 -0.1668)
OKLCHoklch(43.77% 0.167 268.5)
XYZxyz(10.6541, 7.7916, 39.9642)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45AC #AC942D
analogous
#2D85AC #2D45AC #542DAC
triadic
#2D45AC #AC2D45 #45AC2D
tetradic
#2D45AC #AC2D85 #AC942D #2DAC54
square
#2D45AC #AC2D85 #AC942D #2DAC54
split-complementary
#2D45AC #AC542D #85AC2D
monochromatic
#141E4B #20327B #2D45AC #4761CF #788BDC

Accessibility & contrast

On white

8.21
#2D45AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2D45AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45AC
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45AC#FFFFFF#000000##FFFFFF
##2D45AC1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d45ac;
/* rgb */ color: rgb(45, 69, 172);
/* oklch */ color: oklch(43.8% 0.167 268.5);
Tailwind
colors: {
  custom: {
    50: '#7878c6',
    500: '#2d45ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d45ac;
$custom-light: #7878c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45ac",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 228.661,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43765,
    "c": 0.16682,
    "h": 268.5
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#2D45AC
secondary
#C4B471
accent
#C446E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2D45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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