#2E45AF#2E45AF

#2E45AF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.171 H 268.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2E45AF
RGBrgb(46, 69, 175)
HSLhsl(229, 58%, 43%)
HSVhsv(229, 74%, 69%)
CMYKcmyk(73.7%, 60.6%, 0%, 31.4%)
CIE-LABlab(33.84, 28.77, -59.08)
CIE-LCHlch(33.84, 65.71, 295.96°)
OKLaboklab(44.07% -0.0034 -0.1706)
OKLCHoklch(44.07% 0.171 268.8)
XYZxyz(10.9900, 7.9311, 41.5008)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45AF #AF982E
analogous
#2E85AF #2E45AF #572EAF
triadic
#2E45AF #AF2E45 #45AF2E
tetradic
#2E45AF #AF2E85 #AF982E #2EAF57
square
#2E45AF #AF2E85 #AF982E #2EAF57
split-complementary
#2E45AF #AF572E #85AF2E
monochromatic
#151F4E #21327F #2E45AF #4B62D0 #7B8CDC

Accessibility & contrast

On white

8.12
#2E45AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2E45AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45AF
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45AF#FFFFFF#000000##FFFFFF
##2E45AF1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e45af;
/* rgb */ color: rgb(46, 69, 175);
/* oklch */ color: oklch(44.1% 0.171 268.8);
Tailwind
colors: {
  custom: {
    50: '#7978c8',
    500: '#2e45af',
    950: '#000000',
  },
}
SCSS
$custom: #2e45af;
$custom-light: #7978c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45af",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 229.302,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44073,
    "c": 0.1706,
    "h": 268.8
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#2E45AF
secondary
#C5B674
accent
#C646E2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2E45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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