#2E45A4#2E45A4

#2E45A4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.1% C 0.156 H 268.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2E45A4
RGBrgb(46, 69, 164)
HSLhsl(228, 56%, 41%)
HSVhsv(228, 72%, 64%)
CMYKcmyk(72%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.95, 24.66, -53.94)
CIE-LCHlch(32.95, 59.31, 294.57°)
OKLaboklab(43.14% -0.0036 -0.1555)
OKLCHoklch(43.14% 0.156 268.7)
XYZxyz(9.9534, 7.5164, 36.0410)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45A4 #A48D2E
analogous
#2E80A4 #2E45A4 #522EA4
triadic
#2E45A4 #A42E45 #45A42E
tetradic
#2E45A4 #A42E80 #A48D2E #2EA452
square
#2E45A4 #A42E80 #A48D2E #2EA452
split-complementary
#2E45A4 #A4522E #80A42E
monochromatic
#131D44 #213174 #2E45A4 #455FCB #7488D8

Accessibility & contrast

On white

8.39
#2E45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2E45A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45A4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45A4#FFFFFF#000000##FFFFFF
##2E45A41.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e45a4;
/* rgb */ color: rgb(46, 69, 164);
/* oklch */ color: oklch(43.1% 0.156 268.7);
Tailwind
colors: {
  custom: {
    50: '#7778c0',
    500: '#2e45a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e45a4;
$custom-light: #7778c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45a4",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 228.305,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43138,
    "c": 0.15553,
    "h": 268.7
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#2E45A4
secondary
#C0B06E
accent
#C248DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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