#2D45AB#2D45AB

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

Color values

HEX#2D45AB
RGBrgb(45, 69, 171)
HSLhsl(229, 58%, 42%)
HSVhsv(229, 74%, 67%)
CMYKcmyk(73.7%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.46, 27.15, -57.31)
CIE-LCHlch(33.46, 63.42, 295.35°)
OKLaboklab(43.68% -0.0044 -0.1654)
OKLCHoklch(43.68% 0.165 268.5)
XYZxyz(10.5585, 7.7533, 39.4603)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D45AB #AB932D
analogous
#2D84AB #2D45AB #542DAB
triadic
#2D45AB #AB2D45 #45AB2D
tetradic
#2D45AB #AB2D84 #AB932D #2DAB54
square
#2D45AB #AB2D84 #AB932D #2DAB54
split-complementary
#2D45AB #AB542D #84AB2D
monochromatic
#141E4A #20317B #2D45AB #4761CE #778ADB

Accessibility & contrast

On white

8.23
#2D45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D45AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D45AB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D45AB#FFFFFF#000000##FFFFFF
##2D45AB1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d45ab;
/* rgb */ color: rgb(45, 69, 171);
/* oklch */ color: oklch(43.7% 0.165 268.5);
Tailwind
colors: {
  custom: {
    50: '#7878c5',
    500: '#2d45ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d45ab;
$custom-light: #7878c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d45ab",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 228.571,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43679,
    "c": 0.16546,
    "h": 268.5
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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