#2D45A0#2D45A0

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

Color values

HEX#2D45A0
RGBrgb(45, 69, 160)
HSLhsl(227, 56%, 40%)
HSVhsv(227, 72%, 63%)
CMYKcmyk(71.9%, 56.9%, 0%, 37.3%)
CIE-LABlab(32.59, 23.02, -52.13)
CIE-LCHlch(32.59, 56.98, 293.83°)
OKLaboklab(42.76% -0.0048 -0.1502)
OKLCHoklch(42.76% 0.15 268.2)
XYZxyz(9.5533, 7.3512, 34.1663)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45A0 #A0882D
analogous
#2D7FA0 #2D45A0 #4E2DA0
triadic
#2D45A0 #A02D45 #45A02D
tetradic
#2D45A0 #A02D7F #A0882D #2DA04E
square
#2D45A0 #A02D7F #A0882D #2DA04E
split-complementary
#2D45A0 #A04E2D #7FA02D
monochromatic
#121C40 #203070 #2D45A0 #415DC9 #7086D7

Accessibility & contrast

On white

8.50
#2D45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2D45A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45A0
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45A0#FFFFFF#000000##FFFFFF
##2D45A01.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d45a0;
/* rgb */ color: rgb(45, 69, 160);
/* oklch */ color: oklch(42.8% 0.150 268.2);
Tailwind
colors: {
  custom: {
    50: '#7578bd',
    500: '#2d45a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d45a0;
$custom-light: #7578bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45a0",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 227.478,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42755,
    "c": 0.15024,
    "h": 268.2
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#2D45A0
secondary
#BEAD6B
accent
#C048DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D45A0

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

Preview Lab → · Contrast checker → · Palette generator →

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