#2E45AC#2E45AC

#2E45AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.167 H 268.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#2E45AC
RGBrgb(46, 69, 172)
HSLhsl(229, 58%, 43%)
HSVhsv(229, 73%, 67%)
CMYKcmyk(73.3%, 59.9%, 0%, 32.5%)
CIE-LABlab(33.59, 27.65, -57.69)
CIE-LCHlch(33.59, 63.98, 295.61°)
OKLaboklab(43.81% -0.0035 -0.1665)
OKLCHoklch(43.81% 0.167 268.8)
XYZxyz(10.6987, 7.8145, 39.9662)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45AC #AC952E
analogous
#2E84AC #2E45AC #562EAC
triadic
#2E45AC #AC2E45 #45AC2E
tetradic
#2E45AC #AC2E84 #AC952E #2EAC56
square
#2E45AC #AC2E84 #AC952E #2EAC56
split-complementary
#2E45AC #AC562E #84AC2E
monochromatic
#141E4B #21327C #2E45AC #4961CE #798BDB

Accessibility & contrast

On white

8.19
#2E45AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E45AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45AC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45AC#FFFFFF#000000##FFFFFF
##2E45AC1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e45ac;
/* rgb */ color: rgb(46, 69, 172);
/* oklch */ color: oklch(43.8% 0.167 268.8);
Tailwind
colors: {
  custom: {
    50: '#7978c6',
    500: '#2e45ac',
    950: '#000000',
  },
}
SCSS
$custom: #2e45ac;
$custom-light: #7978c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45ac",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 229.048,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43814,
    "c": 0.16654,
    "h": 268.8
  },
  "luminance": 0.07816
}

Semantic roles & 50–950 ramp

primary
#2E45AC
secondary
#C3B572
accent
#C547E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2E45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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