#2D45B2#2D45B2

#2D45B2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.3% C 0.175 H 268.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2D45B2
RGBrgb(45, 69, 178)
HSLhsl(229, 60%, 44%)
HSVhsv(229, 75%, 70%)
CMYKcmyk(74.7%, 61.2%, 0%, 30.2%)
CIE-LABlab(34.04, 29.76, -60.54)
CIE-LCHlch(34.04, 67.46, 296.18°)
OKLaboklab(44.29% -0.0044 -0.1749)
OKLCHoklch(44.29% 0.175 268.6)
XYZxyz(11.2434, 8.0273, 43.0677)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45B2 #B29A2D
analogous
#2D87B2 #2D45B2 #572DB2
triadic
#2D45B2 #B22D45 #45B22D
tetradic
#2D45B2 #B22D87 #B29A2D #2DB257
square
#2D45B2 #B22D87 #B29A2D #2DB257
split-complementary
#2D45B2 #B2572D #87B22D
monochromatic
#141F50 #213281 #2D45B2 #4B63D1 #7C8DDE

Accessibility & contrast

On white

8.06
#2D45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2D45B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45B2
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45B2#FFFFFF#000000##FFFFFF
##2D45B21.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d45b2;
/* rgb */ color: rgb(45, 69, 178);
/* oklch */ color: oklch(44.3% 0.175 268.6);
Tailwind
colors: {
  custom: {
    50: '#7a78ca',
    500: '#2d45b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d45b2;
$custom-light: #7a78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45b2",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 229.173,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44286,
    "c": 0.17493,
    "h": 268.6
  },
  "luminance": 0.08028
}

Semantic roles & 50–950 ramp

primary
#2D45B2
secondary
#C6B775
accent
#C645E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2D45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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