#2E4C8E#2E4C8E

#2E4C8E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.115 H 263.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2E4C8E
RGBrgb(46, 76, 142)
HSLhsl(221, 51%, 37%)
HSVhsv(221, 68%, 56%)
CMYKcmyk(67.6%, 46.5%, 0%, 44.3%)
CIE-LABlab(33.35, 11.67, -39.96)
CIE-LCHlch(33.35, 41.63, 286.27°)
OKLaboklab(42.94% -0.0123 -0.1143)
OKLCHoklch(42.94% 0.115 263.8)
XYZxyz(8.5919, 7.7019, 26.6198)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4C8E #8E702E
analogous
#2E7C8E #2E4C8E #402E8E
triadic
#2E4C8E #8E2E4C #4C8E2E
tetradic
#2E4C8E #8E2E7C #8E702E #2E8E40
square
#2E4C8E #8E2E7C #8E702E #2E8E40
split-complementary
#2E4C8E #8E402E #7C8E2E
monochromatic
#101B32 #1F3360 #2E4C8E #3D65BC #6888CE

Accessibility & contrast

On white

8.27
#2E4C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2E4C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4C8E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4C8E#FFFFFF#000000##FFFFFF
##2E4C8E1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#1A4A8D
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4c8e;
/* rgb */ color: rgb(46, 76, 142);
/* oklch */ color: oklch(42.9% 0.115 263.8);
Tailwind
colors: {
  custom: {
    50: '#727daf',
    500: '#2e4c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e4c8e;
$custom-light: #727daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4c8e",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 221.25,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.11492,
    "h": 263.8
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#2E4C8E
secondary
#B59B63
accent
#AE4DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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