#2E45A6#2E45A6

#2E45A6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.158 H 268.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2E45A6
RGBrgb(46, 69, 166)
HSLhsl(229, 57%, 42%)
HSVhsv(229, 72%, 65%)
CMYKcmyk(72.3%, 58.4%, 0%, 34.9%)
CIE-LABlab(33.11, 25.41, -54.89)
CIE-LCHlch(33.11, 60.49, 294.84°)
OKLaboklab(43.31% -0.0036 -0.1583)
OKLCHoklch(43.31% 0.158 268.7)
XYZxyz(10.1354, 7.5892, 36.9997)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45A6 #A68F2E
analogous
#2E81A6 #2E45A6 #532EA6
triadic
#2E45A6 #A62E45 #45A62E
tetradic
#2E45A6 #A62E81 #A68F2E #2EA653
square
#2E45A6 #A62E81 #A68F2E #2EA653
split-complementary
#2E45A6 #A6532E #81A62E
monochromatic
#131D46 #213176 #2E45A6 #465FCC #7689D9

Accessibility & contrast

On white

8.34
#2E45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2E45A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45A6
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45A6#FFFFFF#000000##FFFFFF
##2E45A61.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e45a6;
/* rgb */ color: rgb(46, 69, 166);
/* oklch */ color: oklch(43.3% 0.158 268.7);
Tailwind
colors: {
  custom: {
    50: '#7778c1',
    500: '#2e45a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e45a6;
$custom-light: #7778c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45a6",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 228.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43305,
    "c": 0.1583,
    "h": 268.7
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#2E45A6
secondary
#C1B16F
accent
#C348E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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