#2E4C7C#2E4C7C

#2E4C7C is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.8% C 0.088 H 259.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#2E4C7C
RGBrgb(46, 76, 124)
HSLhsl(217, 46%, 33%)
HSVhsv(217, 63%, 49%)
CMYKcmyk(62.9%, 38.7%, 0%, 51.4%)
CIE-LABlab(32.27, 4.95, -30.60)
CIE-LCHlch(32.27, 31.00, 279.19°)
OKLaboklab(41.75% -0.0162 -0.0868)
OKLCHoklch(41.75% 0.088 259.4)
XYZxyz(7.3480, 7.2043, 20.0682)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4C7C #7C5E2E
analogous
#2E737C #2E4C7C #372E7C
triadic
#2E4C7C #7C2E4C #4C7C2E
tetradic
#2E4C7C #7C2E73 #7C5E2E #2E7C37
square
#2E4C7C #7C2E73 #7C5E2E #2E7C37
split-complementary
#2E4C7C #7C372E #737C2E
monochromatic
#0D1523 #1D314F #2E4C7C #3F67A9 #6087C4

Accessibility & contrast

On white

8.60
#2E4C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2E4C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4C7C
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4C7C#FFFFFF#000000##FFFFFF
##2E4C7C1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38507E
Deuteranopia (green-blind)
#2D497B
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4c7c;
/* rgb */ color: rgb(46, 76, 124);
/* oklch */ color: oklch(41.8% 0.088 259.4);
Tailwind
colors: {
  custom: {
    50: '#6e7da2',
    500: '#2e4c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e4c7c;
$custom-light: #6e7da2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4c7c",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 124
  },
  "hsl": {
    "h": 216.923,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4175,
    "c": 0.08829,
    "h": 259.4
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#2E4C7C
secondary
#AB8C5B
accent
#A352D6
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2E4C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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