#2E4A8A#2E4A8A

#2E4A8A is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.2% C 0.112 H 264.4°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2E4A8A
RGBrgb(46, 74, 138)
HSLhsl(222, 50%, 36%)
HSVhsv(222, 67%, 54%)
CMYKcmyk(66.7%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.51, 11.50, -38.87)
CIE-LCHlch(32.51, 40.53, 286.48°)
OKLaboklab(42.21% -0.0109 -0.1111)
OKLCHoklch(42.21% 0.112 264.4)
XYZxyz(8.1613, 7.3126, 25.0212)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4A8A #8A6E2E
analogous
#2E788A #2E4A8A #402E8A
triadic
#2E4A8A #8A2E4A #4A8A2E
tetradic
#2E4A8A #8A2E78 #8A6E2E #2E8A40
square
#2E4A8A #8A2E78 #8A6E2E #2E8A40
split-complementary
#2E4A8A #8A402E #788A2E
monochromatic
#0F192E #1F315C #2E4A8A #3D63B8 #6685CC

Accessibility & contrast

On white

8.53
#2E4A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2E4A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4A8A
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4A8A#FFFFFF#000000##FFFFFF
##2E4A8A1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518C
Deuteranopia (green-blind)
#1B4989
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4a8a;
/* rgb */ color: rgb(46, 74, 138);
/* oklch */ color: oklch(42.2% 0.112 264.4);
Tailwind
colors: {
  custom: {
    50: '#717cac',
    500: '#2e4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e4a8a;
$custom-light: #717cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4a8a",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 221.739,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4221,
    "c": 0.1116,
    "h": 264.4
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#2E4A8A
secondary
#B39A61
accent
#AF4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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