#2E4F87#2E4F87

#2E4F87 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.101 H 260.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2E4F87
RGBrgb(46, 79, 135)
HSLhsl(218, 49%, 35%)
HSVhsv(218, 66%, 53%)
CMYKcmyk(65.9%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.82, 7.04, -34.93)
CIE-LCHlch(33.82, 35.64, 281.40°)
OKLaboklab(43.16% -0.0169 -0.0994)
OKLCHoklch(43.16% 0.101 260.3)
XYZxyz(8.2943, 7.9213, 24.0088)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F87 #87662E
analogous
#2E7B87 #2E4F87 #3A2E87
triadic
#2E4F87 #872E4F #4F872E
tetradic
#2E4F87 #872E7B #87662E #2E873A
square
#2E4F87 #872E7B #87662E #2E873A
split-complementary
#2E4F87 #873A2E #7B872E
monochromatic
#0F1A2C #1E3459 #2E4F87 #3E6AB5 #658BCA

Accessibility & contrast

On white

8.13
#2E4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4F87
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F87#FFFFFF#000000##FFFFFF
##2E4F871.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#294C86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e4f87;
/* rgb */ color: rgb(46, 79, 135);
/* oklch */ color: oklch(43.2% 0.101 260.3);
Tailwind
colors: {
  custom: {
    50: '#707faa',
    500: '#2e4f87',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f87;
$custom-light: #707faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f87",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 217.753,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4316,
    "c": 0.10087,
    "h": 260.3
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#2E4F87
secondary
#B19360
accent
#A64FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2E4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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