#2E45AB#2E45AB

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

Color values

HEX#2E45AB
RGBrgb(46, 69, 171)
HSLhsl(229, 58%, 43%)
HSVhsv(229, 73%, 67%)
CMYKcmyk(73.1%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.51, 27.28, -57.23)
CIE-LCHlch(33.51, 63.40, 295.49°)
OKLaboklab(43.73% -0.0035 -0.1651)
OKLCHoklch(43.73% 0.165 268.8)
XYZxyz(10.6030, 7.7763, 39.4624)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45AB #AB942E
analogous
#2E84AB #2E45AB #552EAB
triadic
#2E45AB #AB2E45 #45AB2E
tetradic
#2E45AB #AB2E84 #AB942E #2EAB55
square
#2E45AB #AB2E84 #AB942E #2EAB55
split-complementary
#2E45AB #AB552E #84AB2E
monochromatic
#141E4B #21327B #2E45AB #4861CE #798BDB

Accessibility & contrast

On white

8.22
#2E45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E45AB
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45AB#FFFFFF#000000##FFFFFF
##2E45AB1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e45ab;
/* rgb */ color: rgb(46, 69, 171);
/* oklch */ color: oklch(43.7% 0.165 268.8);
Tailwind
colors: {
  custom: {
    50: '#7878c5',
    500: '#2e45ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e45ab;
$custom-light: #7878c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45ab",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 228.96,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43729,
    "c": 0.16518,
    "h": 268.8
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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