#2E4F82#2E4F82

#2E4F82 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.8% C 0.094 H 258.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2E4F82
RGBrgb(46, 79, 130)
HSLhsl(216, 48%, 35%)
HSVhsv(216, 65%, 51%)
CMYKcmyk(64.6%, 39.2%, 0%, 49%)
CIE-LABlab(33.53, 5.18, -32.32)
CIE-LCHlch(33.53, 32.73, 279.11°)
OKLaboklab(42.84% -0.0181 -0.0918)
OKLCHoklch(42.84% 0.094 258.8)
XYZxyz(7.9505, 7.7838, 22.1982)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F82 #82612E
analogous
#2E7982 #2E4F82 #372E82
triadic
#2E4F82 #822E4F #4F822E
tetradic
#2E4F82 #822E79 #82612E #2E8237
square
#2E4F82 #822E79 #82612E #2E8237
split-complementary
#2E4F82 #82372E #79822E
monochromatic
#0E1828 #1E3455 #2E4F82 #3E6AAF #638AC8

Accessibility & contrast

On white

8.21
#2E4F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E4F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F82
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F82#FFFFFF#000000##FFFFFF
##2E4F821.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395384
Deuteranopia (green-blind)
#2D4B81
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e4f82;
/* rgb */ color: rgb(46, 79, 130);
/* oklch */ color: oklch(42.8% 0.094 258.8);
Tailwind
colors: {
  custom: {
    50: '#6f80a6',
    500: '#2e4f82',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f82;
$custom-light: #6f80a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f82",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 130
  },
  "hsl": {
    "h": 216.429,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42841,
    "c": 0.09356,
    "h": 258.8
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#2E4F82
secondary
#AE8F5D
accent
#A250D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2E4F82

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

Preview Lab → · Contrast checker → · Palette generator →

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