#2E45AA#2E45AA

#2E45AA is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.164 H 268.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2E45AA
RGBrgb(46, 69, 170)
HSLhsl(229, 57%, 42%)
HSVhsv(229, 73%, 67%)
CMYKcmyk(72.9%, 59.4%, 0%, 33.3%)
CIE-LABlab(33.43, 26.91, -56.76)
CIE-LCHlch(33.43, 62.82, 295.36°)
OKLaboklab(43.64% -0.0035 -0.1638)
OKLCHoklch(43.64% 0.164 268.8)
XYZxyz(10.5080, 7.7383, 38.9623)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45AA #AA932E
analogous
#2E83AA #2E45AA #552EAA
triadic
#2E45AA #AA2E45 #45AA2E
tetradic
#2E45AA #AA2E83 #AA932E #2EAA55
square
#2E45AA #AA2E83 #AA932E #2EAA55
split-complementary
#2E45AA #AA552E #83AA2E
monochromatic
#141E4A #21317A #2E45AA #4861CD #788ADA

Accessibility & contrast

On white

8.24
#2E45AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E45AA
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45AA#FFFFFF#000000##FFFFFF
##2E45AA1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e45aa;
/* rgb */ color: rgb(46, 69, 170);
/* oklch */ color: oklch(43.6% 0.164 268.8);
Tailwind
colors: {
  custom: {
    50: '#7878c4',
    500: '#2e45aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e45aa;
$custom-light: #7878c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45aa",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 228.871,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43643,
    "c": 0.16381,
    "h": 268.8
  },
  "luminance": 0.07739
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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