#2E4785#2E4785

#2E4785 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.108 H 265.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2E4785
RGBrgb(46, 71, 133)
HSLhsl(223, 49%, 35%)
HSVhsv(223, 65%, 52%)
CMYKcmyk(65.4%, 46.6%, 0%, 47.8%)
CIE-LABlab(31.30, 11.64, -37.72)
CIE-LCHlch(31.30, 39.47, 287.15°)
OKLaboklab(41.18% -0.0086 -0.1077)
OKLCHoklch(41.18% 0.108 265.4)
XYZxyz(7.6121, 6.7801, 23.0933)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4785 #856C2E
analogous
#2E7285 #2E4785 #412E85
triadic
#2E4785 #852E47 #47852E
tetradic
#2E4785 #852E72 #856C2E #2E8541
square
#2E4785 #852E72 #856C2E #2E8541
split-complementary
#2E4785 #85412E #72852E
monochromatic
#0F162A #1E2F58 #2E4785 #3E5FB2 #6481C9

Accessibility & contrast

On white

8.91
#2E4785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4785
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4785#FFFFFF#000000##FFFFFF
##2E47851.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E87
Deuteranopia (green-blind)
#1B4684
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e4785;
/* rgb */ color: rgb(46, 71, 133);
/* oklch */ color: oklch(41.2% 0.108 265.4);
Tailwind
colors: {
  custom: {
    50: '#7079a9',
    500: '#2e4785',
    950: '#000000',
  },
}
SCSS
$custom: #2e4785;
$custom-light: #7079a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4785",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 133
  },
  "hsl": {
    "h": 222.759,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4118,
    "c": 0.10808,
    "h": 265.4
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#2E4785
secondary
#B0995F
accent
#B150D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4785

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

Preview Lab → · Contrast checker → · Palette generator →

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