#2E45B1#2E45B1

#2E45B1 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.173 H 268.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2E45B1
RGBrgb(46, 69, 177)
HSLhsl(229, 59%, 44%)
HSVhsv(229, 74%, 69%)
CMYKcmyk(74%, 61%, 0%, 30.6%)
CIE-LABlab(34.00, 29.51, -60.00)
CIE-LCHlch(34.00, 66.86, 296.19°)
OKLaboklab(44.25% -0.0034 -0.1733)
OKLCHoklch(44.25% 0.173 268.9)
XYZxyz(11.1879, 8.0102, 42.5429)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45B1 #B19A2E
analogous
#2E86B1 #2E45B1 #582EB1
triadic
#2E45B1 #B12E45 #45B12E
tetradic
#2E45B1 #B12E86 #B19A2E #2EB158
square
#2E45B1 #B12E86 #B19A2E #2EB158
split-complementary
#2E45B1 #B1582E #86B12E
monochromatic
#151F50 #213280 #2E45B1 #4C63D0 #7C8DDD

Accessibility & contrast

On white

8.07
#2E45B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2E45B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45B1
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45B1#FFFFFF#000000##FFFFFF
##2E45B11.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e45b1;
/* rgb */ color: rgb(46, 69, 177);
/* oklch */ color: oklch(44.2% 0.173 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a78c9',
    500: '#2e45b1',
    950: '#000000',
  },
}
SCSS
$custom: #2e45b1;
$custom-light: #7a78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45b1",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 177
  },
  "hsl": {
    "h": 229.466,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44247,
    "c": 0.1733,
    "h": 268.9
  },
  "luminance": 0.08011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E45B1

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

Preview Lab → · Contrast checker → · Palette generator →

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