#2E4786#2E4786

#2E4786 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.110 H 265.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2E4786
RGBrgb(46, 71, 134)
HSLhsl(223, 49%, 35%)
HSVhsv(223, 66%, 53%)
CMYKcmyk(65.7%, 47%, 0%, 47.5%)
CIE-LABlab(31.37, 12.01, -38.23)
CIE-LCHlch(31.37, 40.08, 287.44°)
OKLaboklab(41.25% -0.0085 -0.1092)
OKLCHoklch(41.25% 0.11 265.6)
XYZxyz(7.6815, 6.8079, 23.4589)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4786 #866D2E
analogous
#2E7386 #2E4786 #412E86
triadic
#2E4786 #862E47 #47862E
tetradic
#2E4786 #862E73 #866D2E #2E8641
square
#2E4786 #862E73 #866D2E #2E8641
split-complementary
#2E4786 #86412E #73862E
monochromatic
#0F172B #1E2F58 #2E4786 #3E5FB4 #6481CA

Accessibility & contrast

On white

8.89
#2E4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2E4786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4786
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4786#FFFFFF#000000##FFFFFF
##2E47861.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E88
Deuteranopia (green-blind)
#194685
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e4786;
/* rgb */ color: rgb(46, 71, 134);
/* oklch */ color: oklch(41.3% 0.110 265.6);
Tailwind
colors: {
  custom: {
    50: '#7079aa',
    500: '#2e4786',
    950: '#000000',
  },
}
SCSS
$custom: #2e4786;
$custom-light: #7079aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4786",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 222.955,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4125,
    "c": 0.10957,
    "h": 265.6
  },
  "luminance": 0.06809
}

Semantic roles & 50–950 ramp

primary
#2E4786
secondary
#B19A5F
accent
#B14FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4786

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

Preview Lab → · Contrast checker → · Palette generator →

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