#2E45A5#2E45A5

#2E45A5 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.2% C 0.157 H 268.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2E45A5
RGBrgb(46, 69, 165)
HSLhsl(228, 56%, 41%)
HSVhsv(228, 72%, 65%)
CMYKcmyk(72.1%, 58.2%, 0%, 35.3%)
CIE-LABlab(33.03, 25.04, -54.42)
CIE-LCHlch(33.03, 59.90, 294.71°)
OKLaboklab(43.22% -0.0036 -0.1569)
OKLCHoklch(43.22% 0.157 268.7)
XYZxyz(10.0440, 7.5527, 36.5185)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45A5 #A58E2E
analogous
#2E81A5 #2E45A5 #532EA5
triadic
#2E45A5 #A52E45 #45A52E
tetradic
#2E45A5 #A52E81 #A58E2E #2EA553
square
#2E45A5 #A52E81 #A58E2E #2EA553
split-complementary
#2E45A5 #A5532E #81A52E
monochromatic
#131D45 #213175 #2E45A5 #455FCB #7588D8

Accessibility & contrast

On white

8.36
#2E45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2E45A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45A5
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45A5#FFFFFF#000000##FFFFFF
##2E45A51.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e45a5;
/* rgb */ color: rgb(46, 69, 165);
/* oklch */ color: oklch(43.2% 0.157 268.7);
Tailwind
colors: {
  custom: {
    50: '#7778c0',
    500: '#2e45a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e45a5;
$custom-light: #7778c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45a5",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 228.403,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43221,
    "c": 0.15692,
    "h": 268.7
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

primary
#2E45A5
secondary
#C0B06F
accent
#C248E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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