#2E4F86#2E4F86

#2E4F86 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.099 H 260.1°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2E4F86
RGBrgb(46, 79, 134)
HSLhsl(218, 49%, 35%)
HSVhsv(218, 66%, 53%)
CMYKcmyk(65.7%, 41%, 0%, 47.5%)
CIE-LABlab(33.76, 6.67, -34.41)
CIE-LCHlch(33.76, 35.05, 280.97°)
OKLaboklab(43.1% -0.0172 -0.0979)
OKLCHoklch(43.1% 0.099 260.1)
XYZxyz(8.2242, 7.8933, 23.6398)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F86 #86652E
analogous
#2E7B86 #2E4F86 #392E86
triadic
#2E4F86 #862E4F #4F862E
tetradic
#2E4F86 #862E7B #86652E #2E8639
square
#2E4F86 #862E7B #86652E #2E8639
split-complementary
#2E4F86 #86392E #7B862E
monochromatic
#0F192B #1E3458 #2E4F86 #3E6AB4 #648BCA

Accessibility & contrast

On white

8.14
#2E4F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2E4F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F86
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F86#FFFFFF#000000##FFFFFF
##2E4F861.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375488
Deuteranopia (green-blind)
#2A4C85
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e4f86;
/* rgb */ color: rgb(46, 79, 134);
/* oklch */ color: oklch(43.1% 0.099 260.1);
Tailwind
colors: {
  custom: {
    50: '#707fa9',
    500: '#2e4f86',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f86;
$custom-light: #707fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f86",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 217.5,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43095,
    "c": 0.0994,
    "h": 260.1
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#2E4F86
secondary
#B1925F
accent
#A54FD8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2E4F86

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

Preview Lab → · Contrast checker → · Palette generator →

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