#2E4178#2E4178

#2E4178 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.096 H 267.5°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2E4178
RGBrgb(46, 65, 120)
HSLhsl(225, 45%, 33%)
HSVhsv(225, 62%, 47%)
CMYKcmyk(61.7%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.69, 10.86, -33.79)
CIE-LCHlch(28.69, 35.49, 287.82°)
OKLaboklab(38.91% -0.0042 -0.0963)
OKLCHoklch(38.91% 0.096 267.5)
XYZxyz(6.4060, 5.7170, 18.5316)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4178 #78652E
analogous
#2E6678 #2E4178 #402E78
triadic
#2E4178 #782E41 #41782E
tetradic
#2E4178 #782E66 #78652E #2E7840
square
#2E4178 #782E66 #78652E #2E7840
split-complementary
#2E4178 #78402E #66782E
monochromatic
#0C1120 #1D294C #2E4178 #3F59A4 #5F78C2

Accessibility & contrast

On white

9.80
#2E4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4178
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4178#FFFFFF#000000##FFFFFF
##2E41781.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#1E4177
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e4178;
/* rgb */ color: rgb(46, 65, 120);
/* oklch */ color: oklch(38.9% 0.096 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e759f',
    500: '#2e4178',
    950: '#000000',
  },
}
SCSS
$custom: #2e4178;
$custom-light: #6e759f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4178",
  "rgb": {
    "r": 46,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 224.595,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38907,
    "c": 0.09636,
    "h": 267.5
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#2E4178
secondary
#A8945A
accent
#B354D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #2E4178

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

Preview Lab → · Contrast checker → · Palette generator →

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