#2E45B5#2E45B5

#2E45B5 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.179 H 268.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2E45B5
RGBrgb(46, 69, 181)
HSLhsl(230, 59%, 45%)
HSVhsv(230, 75%, 71%)
CMYKcmyk(74.6%, 61.9%, 0%, 29%)
CIE-LABlab(34.34, 30.98, -61.82)
CIE-LCHlch(34.34, 69.15, 296.62°)
OKLaboklab(44.6% -0.0035 -0.1786)
OKLCHoklch(44.6% 0.179 268.9)
XYZxyz(11.5924, 8.1720, 44.6735)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45B5 #B59E2E
analogous
#2E88B5 #2E45B5 #5B2EB5
triadic
#2E45B5 #B52E45 #45B52E
tetradic
#2E45B5 #B52E88 #B59E2E #2EB55B
square
#2E45B5 #B52E88 #B59E2E #2EB55B
split-complementary
#2E45B5 #B55B2E #88B52E
monochromatic
#152053 #223284 #2E45B5 #4E65D2 #7F8FDE

Accessibility & contrast

On white

7.97
#2E45B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2E45B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45B5
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45B5#FFFFFF#000000##FFFFFF
##2E45B51.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2e45b5;
/* rgb */ color: rgb(46, 69, 181);
/* oklch */ color: oklch(44.6% 0.179 268.9);
Tailwind
colors: {
  custom: {
    50: '#7b78cc',
    500: '#2e45b5',
    950: '#000000',
  },
}
SCSS
$custom: #2e45b5;
$custom-light: #7b78cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45b5",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 229.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44599,
    "c": 0.17865,
    "h": 268.9
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#2E45B5
secondary
#C7BA78
accent
#C845E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2E45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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