#2E4A8E#2E4A8E

#2E4A8E is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.5% C 0.117 H 265.0°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2E4A8E
RGBrgb(46, 74, 142)
HSLhsl(223, 51%, 37%)
HSVhsv(223, 68%, 56%)
CMYKcmyk(67.6%, 47.9%, 0%, 44.3%)
CIE-LABlab(32.77, 13.01, -40.90)
CIE-LCHlch(32.77, 42.92, 287.64°)
OKLaboklab(42.49% -0.0103 -0.117)
OKLCHoklch(42.49% 0.118 265)
XYZxyz(8.4563, 7.4306, 26.5745)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4A8E #8E722E
analogous
#2E7A8E #2E4A8E #422E8E
triadic
#2E4A8E #8E2E4A #4A8E2E
tetradic
#2E4A8E #8E2E7A #8E722E #2E8E42
square
#2E4A8E #8E2E7A #8E722E #2E8E42
split-complementary
#2E4A8E #8E422E #7A8E2E
monochromatic
#101A32 #1F3260 #2E4A8E #3D62BC #6886CE

Accessibility & contrast

On white

8.45
#2E4A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2E4A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4A8E
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4A8E#FFFFFF#000000##FFFFFF
##2E4A8E1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#15498D
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e4a8e;
/* rgb */ color: rgb(46, 74, 142);
/* oklch */ color: oklch(42.5% 0.117 265.0);
Tailwind
colors: {
  custom: {
    50: '#727caf',
    500: '#2e4a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e4a8e;
$custom-light: #727caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4a8e",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 142
  },
  "hsl": {
    "h": 222.5,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42492,
    "c": 0.1175,
    "h": 265
  },
  "luminance": 0.07431
}

Semantic roles & 50–950 ramp

primary
#2E4A8E
secondary
#B59D63
accent
#B14DDB
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2E4A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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