#2E45A8#2E45A8

#2E45A8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.161 H 268.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2E45A8
RGBrgb(46, 69, 168)
HSLhsl(229, 57%, 42%)
HSVhsv(229, 73%, 66%)
CMYKcmyk(72.6%, 58.9%, 0%, 34.1%)
CIE-LABlab(33.27, 26.16, -55.83)
CIE-LCHlch(33.27, 61.65, 295.11°)
OKLaboklab(43.47% -0.0035 -0.161)
OKLCHoklch(43.47% 0.161 268.7)
XYZxyz(10.3203, 7.6632, 37.9734)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45A8 #A8912E
analogous
#2E82A8 #2E45A8 #542EA8
triadic
#2E45A8 #A82E45 #45A82E
tetradic
#2E45A8 #A82E82 #A8912E #2EA854
square
#2E45A8 #A82E82 #A8912E #2EA854
split-complementary
#2E45A8 #A8542E #82A82E
monochromatic
#141E48 #213178 #2E45A8 #4760CD #7789DA

Accessibility & contrast

On white

8.29
#2E45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2E45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45A8
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45A8#FFFFFF#000000##FFFFFF
##2E45A81.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e45a8;
/* rgb */ color: rgb(46, 69, 168);
/* oklch */ color: oklch(43.5% 0.161 268.7);
Tailwind
colors: {
  custom: {
    50: '#7878c3',
    500: '#2e45a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e45a8;
$custom-light: #7878c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45a8",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 228.689,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43473,
    "c": 0.16106,
    "h": 268.7
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#2E45A8
secondary
#C2B270
accent
#C348E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2E45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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